We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d20759 commit 7384d9aCopy full SHA for 7384d9a
1 file changed
src/sound/html5/HTML5AudioSoundManager.js
@@ -15,6 +15,18 @@ var HTML5AudioSoundManager = new Class({
15
* @default true
16
*/
17
this.override = true;
18
+ /**
19
+ * Value representing time difference in seconds between calling
20
+ * play method on an audio tag and when it actually starts playing.
21
+ * It is used to achieve more accurate delayed sound playback.
22
+ *
23
+ * You might need to tweak this value to get the desired results
24
+ * since audio play delay varies depending on the browser/platform.
25
26
+ * @property {number} audioPlayDelay
27
+ * @default 0.1
28
+ */
29
+ this.audioPlayDelay = 0.1;
30
/**
31
* An array for keeping track of all the sounds
32
* that were paused when game lost focus.
0 commit comments