We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe99512 commit b39f4fcCopy full SHA for b39f4fc
1 file changed
src/sound/webaudio/WebAudioSoundManager.js
@@ -178,7 +178,14 @@ var WebAudioSoundManager = new Class({
178
this.masterVolumeNode = null;
179
this.masterMuteNode.disconnect();
180
this.masterMuteNode = null;
181
- this.context.suspend();
+ if (this.game.config.audio && this.game.config.audio.context)
182
+ {
183
+ this.context.suspend();
184
+ }
185
+ else
186
187
+ this.context.close();
188
189
this.context = null;
190
BaseSoundManager.prototype.destroy.call(this);
191
}
0 commit comments