Skip to content

Commit 9a14369

Browse files
Using duration property instead of config duration setting in WebAudioSound
1 parent 92abe3f commit 9a14369

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var WebAudioSound = new Class({
6060
}
6161
this.stopAndRemoveBufferSource();
6262
// TODO include config offset and marker start
63-
this.createAndStartBufferSource(0, this.currentConfig.duration);
63+
this.createAndStartBufferSource(0, this.duration);
6464
this.startTime = this.manager.context.currentTime;
6565
this.pausedTime = 0;
6666
return this;
@@ -78,7 +78,7 @@ var WebAudioSound = new Class({
7878
return false;
7979
}
8080
var offset = this.pausedTime; // TODO include marker start time
81-
var duration = this.currentConfig.duration - this.pausedTime;
81+
var duration = this.duration - this.pausedTime;
8282
this.createAndStartBufferSource(offset, duration);
8383
this.startTime = this.manager.context.currentTime - this.pausedTime;
8484
this.pausedTime = 0;

0 commit comments

Comments
 (0)