From 5dab6964829751bba52fb0f1939e8906c5100a9f Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 27 Dec 2024 12:46:21 +0100 Subject: [PATCH] updated locked condition to only depend on audio context state --- src/sound/webaudio/WebAudioSoundManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/webaudio/WebAudioSoundManager.js b/src/sound/webaudio/WebAudioSoundManager.js index ef7a2267a2..2e8b1b8082 100644 --- a/src/sound/webaudio/WebAudioSoundManager.js +++ b/src/sound/webaudio/WebAudioSoundManager.js @@ -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);