From 19ec0fb7351dd2d2de0dcab410d0405ee18be530 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Wed, 17 Jan 2018 19:02:10 +0100 Subject: [PATCH] Added lockedActionsQueue property to HTML5AudioSoundManager class for internal use --- src/sound/html5/HTML5AudioSoundManager.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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.