From d46166e4ff19ac51f5c32664505eae078b314431 Mon Sep 17 00:00:00 2001 From: SthephanShi Date: Mon, 2 Dec 2024 11:57:32 +0200 Subject: [PATCH] Fix playback speed buttons (#87) --- src/index.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.mjs b/src/index.mjs index 9c4a2978..d0fbc12b 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -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;