Skip to content

Commit c6c3f1d

Browse files
Setting unlocked property to true when audio context resumes
1 parent bf0c868 commit c6c3f1d

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
@@ -93,6 +93,7 @@ var WebAudioSoundManager = new Class({
9393
_this.context.resume().then(function () {
9494
document.body.removeEventListener('touchstart', unlock);
9595
document.body.removeEventListener('touchend', unlock);
96+
_this.unlocked = true;
9697
});
9798
};
9899
document.body.addEventListener('touchstart', unlock, false);

0 commit comments

Comments
 (0)