Skip to content

Commit

Permalink
updated locked condition to only depend on audio context state
Browse files Browse the repository at this point in the history
  • Loading branch information
pavle-goloskokovic committed Dec 27, 2024
1 parent 95a981d commit 5dab696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sound/webaudio/WebAudioSoundManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var WebAudioSoundManager = new Class({
*/
this.destination = this.masterMuteNode;

this.locked = this.context.state === 'suspended' && ('ontouchstart' in window || 'onclick' in window);
this.locked = this.context.state === 'suspended';

BaseSoundManager.call(this, game);

Expand Down

0 comments on commit 5dab696

Please sign in to comment.