Skip to content

Commit a90760f

Browse files
Setting locked property for WebAudioSoundManager
1 parent 8ec82c3 commit a90760f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ var WebAudioSoundManager = new Class({
4444
* @property {AudioNode} destination
4545
*/
4646
this.destination = this.masterMuteNode;
47+
this.locked = this.context.state === 'suspended' && 'ontouchstart' in window;
4748
BaseSoundManager.call(this, game);
4849
},
4950
/**

0 commit comments

Comments
 (0)