Added locked property to BaseSoundManager class

This commit is contained in:
Pavle Goloskokovic 2018-01-17 18:09:00 +01:00
parent 94cefc9621
commit 31cd229bf2

View file

@ -98,6 +98,16 @@ var BaseSoundManager = new Class({
* @default 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();
},
/**