Added lockedActionsQueue property to HTML5AudioSoundManager class for internal use

This commit is contained in:
Pavle Goloskokovic 2018-01-17 19:02:10 +01:00
parent bcb11d5c4e
commit 19ec0fb735

View file

@ -46,6 +46,20 @@ var HTML5AudioSoundManager = new Class({
* @default [] * @default []
*/ */
this.onBlurPausedSounds = []; 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 * Property that actually holds the value of global mute
* for HTML5 Audio sound manager implementation. * for HTML5 Audio sound manager implementation.