mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
added muteNode field for WebAudioSound class
This commit is contained in:
parent
18ca26e50b
commit
9381ab0305
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ var WebAudioSound = new Class({
|
|||
* @property {GainNode} volumeNode
|
||||
*/
|
||||
this.volumeNode = manager.context.createGain();
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
* @property {GainNode} muteNode
|
||||
*/
|
||||
this.muteNode = manager.context.createGain();
|
||||
this.volumeNode.connect(manager.destination);
|
||||
if (config === void 0) {
|
||||
config = {};
|
||||
|
|
Loading…
Reference in a new issue