Skip to content

Commit 031f409

Browse files
added masterVolumeNode to WebAudioSoundManager class
1 parent 70a07ed commit 031f409

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

v3/src/sound/WebAudioSoundManager.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ var WebAudioSoundManager = new Class({
77
initialize: function WebAudioSoundManager(game) {
88
BaseSoundManager.call(this, game);
99
/**
10-
* @property {AudioContext} context - The AudioContext being used for playback.
11-
* @default
10+
* The AudioContext being used for playback.
11+
*
12+
* @property {AudioContext} context
1213
*/
1314
this.context = this.createAudioContext();
15+
/**
16+
* [description]
17+
*
18+
* @property {GainNode} masterVolumeNode
19+
*/
20+
this.masterVolumeNode = this.context.createGain();
1421
},
1522
createAudioContext: function () {
1623
var audioConfig = this.game.config.audio;

0 commit comments

Comments
 (0)