Skip to content

Commit

Permalink
Increment version, use latest cracked w bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
billorcutt committed Jul 21, 2018
1 parent 0ef015b commit 50405a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions lib/cracked/cracked.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ var _nodeStore = {},
_debugEnabled = false,
_context = window.AudioContext ? new AudioContext() : new webkitAudioContext(),
_maxChannelCount = _context.destination.maxChannelCount;
_context.destination.channelCount = _maxChannelCount;
_context.destination.channelCountMode = "explicit";
_context.destination.channelInterpretation = "discrete";

/**
* #Finding#
Expand Down Expand Up @@ -1357,6 +1354,13 @@ cracked.biquadFilter = function (userParams) {
* @param {Object} [userParams] map of optional values
*/
cracked.channelMerger = function (userParams) {

if(_maxChannelCount > 2) {
_context.destination.channelCount = _maxChannelCount;
_context.destination.channelCountMode = "explicit";
_context.destination.channelInterpretation = "discrete";
}

var channels = __.isNum(userParams) ? userParams : (__.isObj(userParams) && userParams.channels) ? userParams.channels : _context.destination.maxChannelCount;
var creationParams = {
"method": "createChannelMerger",
Expand Down Expand Up @@ -4143,10 +4147,12 @@ cracked.out = function (params) {
};

/**
* System out - destination with a master volume w/ multi-channel support
* System multi_out - destination with a master volume w/ multi-channel support
* @plugin
* @category Miscellaneous
* @param {Number} [params=1] system out gain
* @param {Object} [userParams] map of optional values
* @param {Number} [userParams.gain=1]
* @param {Number} [userParams.channel=1]
* @function
* @memberof cracked
* @name cracked#out
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cracked",
"productName": "Cracked",
"version": "0.1.9",
"version": "0.1.10",
"main": "main.js",
"description": "Web audio, cracked.",
"keywords": "Web audio, synthesis, sound, music",
Expand Down

0 comments on commit 50405a7

Please sign in to comment.