mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
Added locked property to BaseSoundManager class
This commit is contained in:
parent
94cefc9621
commit
31cd229bf2
1 changed files with 10 additions and 0 deletions
|
@ -98,6 +98,16 @@ var BaseSoundManager = new Class({
|
||||||
* @default 0
|
* @default 0
|
||||||
*/
|
*/
|
||||||
this._detune = 0;
|
this._detune = 0;
|
||||||
|
/**
|
||||||
|
* Mobile devices require sounds to be triggered from an explicit user action,
|
||||||
|
* such as a tap, before any sound can be loaded/played on a web page.
|
||||||
|
* Set to true if the audio system is currently locked awaiting user interaction.
|
||||||
|
*
|
||||||
|
* @readonly
|
||||||
|
* @property {boolean} locked
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
this.locked = false;
|
||||||
this.unlock();
|
this.unlock();
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue