You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,7 +38,6 @@ var HTML5AudioSound = new Class({
43
38
* @since 3.0.0
44
39
*/
45
40
this.tags=manager.game.cache.audio.get(key);
46
-
47
41
if(!this.tags)
48
42
{
49
43
// eslint-disable-next-line no-console
@@ -86,11 +80,8 @@ var HTML5AudioSound = new Class({
86
80
* @since 3.0.0
87
81
*/
88
82
this.previousTime=0;
89
-
90
83
this.duration=this.tags[0].duration;
91
-
92
84
this.totalDuration=this.tags[0].duration;
93
-
94
85
BaseSound.call(this,manager,key,config);
95
86
},
96
87
@@ -101,10 +92,10 @@ var HTML5AudioSound = new Class({
101
92
*
102
93
* @method Phaser.Sound.HTML5AudioSound#play
103
94
* @since 3.0.0
104
-
*
95
+
*
105
96
* @param {string} [markerName=''] - If you want to play a marker then provide the marker name here, otherwise omit it to play the full sound.
106
97
* @param {ISoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.
107
-
*
98
+
*
108
99
* @return {boolean} Whether the sound started playing successfully.
109
100
*/
110
101
play: function(markerName,config)
@@ -139,7 +130,7 @@ var HTML5AudioSound = new Class({
139
130
*
140
131
* @method Phaser.Sound.HTML5AudioSound#pause
141
132
* @since 3.0.0
142
-
*
133
+
*
143
134
* @return {boolean} Whether the sound was paused successfully.
144
135
*/
145
136
pause: function()
@@ -178,7 +169,7 @@ var HTML5AudioSound = new Class({
178
169
*
179
170
* @method Phaser.Sound.HTML5AudioSound#resume
180
171
* @since 3.0.0
181
-
*
172
+
*
182
173
* @return {boolean} Whether the sound was resumed successfully.
183
174
*/
184
175
resume: function()
@@ -218,7 +209,7 @@ var HTML5AudioSound = new Class({
218
209
*
219
210
* @method Phaser.Sound.HTML5AudioSound#stop
220
211
* @since 3.0.0
221
-
*
212
+
*
222
213
* @return {boolean} Whether the sound was stopped successfully.
223
214
*/
224
215
stop: function()
@@ -251,7 +242,7 @@ var HTML5AudioSound = new Class({
0 commit comments