We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94cefc9 commit 31cd229Copy full SHA for 31cd229
1 file changed
src/sound/BaseSoundManager.js
@@ -98,6 +98,16 @@ var BaseSoundManager = new Class({
98
* @default 0
99
*/
100
this._detune = 0;
101
+ /**
102
+ * Mobile devices require sounds to be triggered from an explicit user action,
103
+ * such as a tap, before any sound can be loaded/played on a web page.
104
+ * Set to true if the audio system is currently locked awaiting user interaction.
105
+ *
106
+ * @readonly
107
+ * @property {boolean} locked
108
+ * @default false
109
+ */
110
+ this.locked = false;
111
this.unlock();
112
},
113
/**
0 commit comments