Skip to content

Commit 433247f

Browse files
Unlocking sound manager after preloading any scene when using HTML5 audio
1 parent 2b4e5ec commit 433247f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/scene/SceneManager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,12 @@ var SceneManager = new Class({
499499
{
500500
var scene = loader.scene;
501501

502+
// Try to unlock HTML5 sounds every time any loader completes
503+
if (this.game.sound.onBlurPausedSounds)
504+
{
505+
this.game.sound.unlock();
506+
}
507+
502508
this.create(scene);
503509
},
504510

0 commit comments

Comments
 (0)