mirror of
https://github.com/photonstorm/phaser
synced 2025-01-05 09:48:49 +00:00
Setting lockedActionsQueue value based on locked property value
This commit is contained in:
parent
19ec0fb735
commit
aacd7a972d
1 changed files with 2 additions and 3 deletions
|
@ -46,6 +46,7 @@ var HTML5AudioSoundManager = new Class({
|
||||||
* @default []
|
* @default []
|
||||||
*/
|
*/
|
||||||
this.onBlurPausedSounds = [];
|
this.onBlurPausedSounds = [];
|
||||||
|
this.locked = 'ontouchstart' in window;
|
||||||
/**
|
/**
|
||||||
* A queue of all actions performed on sound objects while audio was locked.
|
* A queue of all actions performed on sound objects while audio was locked.
|
||||||
* Once the audio gets unlocked, after an explicit user interaction,
|
* Once the audio gets unlocked, after an explicit user interaction,
|
||||||
|
@ -57,9 +58,8 @@ var HTML5AudioSoundManager = new Class({
|
||||||
* name: string,
|
* name: string,
|
||||||
* value?: any,
|
* value?: any,
|
||||||
* }[]} lockedActionsQueue
|
* }[]} lockedActionsQueue
|
||||||
* @default []
|
|
||||||
*/
|
*/
|
||||||
this.lockedActionsQueue = [];
|
this.lockedActionsQueue = this.locked ? [] : null;
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
@ -78,7 +78,6 @@ var HTML5AudioSoundManager = new Class({
|
||||||
* @default 1
|
* @default 1
|
||||||
*/
|
*/
|
||||||
this._volume = 1;
|
this._volume = 1;
|
||||||
this.locked = 'ontouchstart' in window;
|
|
||||||
BaseSoundManager.call(this, game);
|
BaseSoundManager.call(this, game);
|
||||||
},
|
},
|
||||||
add: function (key, config) {
|
add: function (key, config) {
|
||||||
|
|
Loading…
Reference in a new issue