Skip to content

Commit 049dd4a

Browse files
properly connect nodes for WebAudioSound class
1 parent 9381ab0 commit 049dd4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

v3/src/sound/WebAudioSound.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ var WebAudioSound = new Class({
2727
* @property {GainNode} muteNode
2828
*/
2929
this.muteNode = manager.context.createGain();
30-
this.volumeNode.connect(manager.destination);
30+
this.volumeNode.connect(this.muteNode);
31+
this.muteNode.connect(manager.destination);
3132
if (config === void 0) {
3233
config = {};
3334
}

0 commit comments

Comments
 (0)