Skip to content

Commit c745e09

Browse files
Fixed pickAndPlayAudioTag method docs
1 parent b607251 commit c745e09

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,15 @@ var HTML5AudioSound = new Class({
242242
this.reset();
243243
return false;
244244
}
245-
246245
var seek = this.currentConfig.seek;
247246
var delay = this.currentConfig.delay;
248247
var offset = (this.currentMarker ? this.currentMarker.start : 0) + seek;
249248
this.previousTime = offset;
250249
this.audio.currentTime = offset;
251250
this.applyConfig();
252-
253251
if (delay === 0)
254252
{
255253
this.startTime = 0;
256-
257254
if (this.audio.paused)
258255
{
259256
this.playCatchPromise();
@@ -262,15 +259,12 @@ var HTML5AudioSound = new Class({
262259
else
263260
{
264261
this.startTime = window.performance.now() + delay * 1000;
265-
266262
if (!this.audio.paused)
267263
{
268264
this.audio.pause();
269265
}
270266
}
271-
272267
this.resetConfig();
273-
274268
return true;
275269
},
276270

0 commit comments

Comments
 (0)