Skip to content

Commit 0ba2335

Browse files
authored
Merge pull request #150 from processing/b2renger-patch-jump-doc
fix #149
2 parents bbf4685 + f6378c4 commit 0ba2335

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/soundfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,8 @@ define(function (require) {
889889
};
890890

891891
/**
892-
* Move the playhead of the song to a position, in seconds. Start
893-
* and Stop time. If none are given, will reset the file to play
892+
* Move the playhead of the song to a position, in seconds. Start timing
893+
* and playback duration. If none are given, will reset the file to play
894894
* entire duration from start to finish.
895895
*
896896
* @method jump
@@ -906,13 +906,13 @@ define(function (require) {
906906
}
907907

908908
var cTime = cueTime || 0;
909-
var eTime = duration || this.buffer.duration - cueTime;
909+
var dur = duration || this.buffer.duration - cueTime;
910910

911911
if (this.isPlaying()){
912912
this.stop();
913913
}
914914

915-
this.play(0, this.playbackRate, this.output.gain.value, cTime, eTime);
915+
this.play(0, this.playbackRate, this.output.gain.value, cTime, dur);
916916
};
917917

918918
/**

0 commit comments

Comments
 (0)