added muteNode field for WebAudioSound class

This commit is contained in:
Pavle Goloskokovic 2017-11-15 16:02:11 +01:00
parent 18ca26e50b
commit 9381ab0305

View file

@ -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 = {};