Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/soundfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,8 @@ define(function (require) {
};

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

var cTime = cueTime || 0;
var eTime = duration || this.buffer.duration - cueTime;
var dur = duration || this.buffer.duration - cueTime;

if (this.isPlaying()){
this.stop();
}

this.play(0, this.playbackRate, this.output.gain.value, cTime, eTime);
this.play(0, this.playbackRate, this.output.gain.value, cTime, dur);
};

/**
Expand Down