diff --git a/src/sound/html5/HTML5AudioSoundManager.js b/src/sound/html5/HTML5AudioSoundManager.js index a1067b12b..776685201 100644 --- a/src/sound/html5/HTML5AudioSoundManager.js +++ b/src/sound/html5/HTML5AudioSoundManager.js @@ -46,6 +46,20 @@ var HTML5AudioSoundManager = new Class({ * @default [] */ this.onBlurPausedSounds = []; + /** + * A queue of all actions performed on sound objects while audio was locked. + * Once the audio gets unlocked, after an explicit user interaction, + * all actions will be performed in chronological order. + * + * @private + * @property {{ + * sound: Phaser.Sound.HTML5AudioSound, + * name: string, + * value?: any, + * }[]} lockedActionsQueue + * @default [] + */ + this.lockedActionsQueue = []; /** * Property that actually holds the value of global mute * for HTML5 Audio sound manager implementation.