mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +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
|
* @property {GainNode} volumeNode
|
||||||
*/
|
*/
|
||||||
this.volumeNode = manager.context.createGain();
|
this.volumeNode = manager.context.createGain();
|
||||||
|
/**
|
||||||
|
* [description]
|
||||||
|
*
|
||||||
|
* @property {GainNode} muteNode
|
||||||
|
*/
|
||||||
|
this.muteNode = manager.context.createGain();
|
||||||
this.volumeNode.connect(manager.destination);
|
this.volumeNode.connect(manager.destination);
|
||||||
if (config === void 0) {
|
if (config === void 0) {
|
||||||
config = {};
|
config = {};
|
||||||
|
|
Loading…
Add table
Reference in a new issue