Skip to content

Commit

Permalink
Fix playback speed buttons (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
SthephanShinkufag committed Dec 2, 2024
1 parent ad0ca44 commit d46166e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ globalThis.bytebeat = new class {
sampleRatio: this.sampleRate / this.audioCtx.sampleRate
};
if(isPlay) {
data.playbackSpeed = this.playbackSpeed = 1;
this.playbackToggle(true, false);
data.resetTime = true;
data.isPlaying = isPlay;
Expand Down

0 comments on commit d46166e

Please sign in to comment.