From 7ee8b6f9861a979595c02e2cd18bf0f36b82bd79 Mon Sep 17 00:00:00 2001 From: EvolvedGhost <727511070@qq.com> Date: Sat, 17 Oct 2026 23:40:20 +0800 Subject: [PATCH] fix(audio): reset gain after graceful stop --- src/audio/player.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/audio/player.ts b/src/audio/player.ts index b4823c5..3c26baa 100644 --- a/src/audio/player.ts +++ b/src/audio/player.ts @@ -655,6 +655,10 @@ export class AudioPlayer extends EventEmitter { this.healthyFrames = 0; this.pauseFrames = 0; this.resumeSilenceFrames = 0; + this.transportRampStart = null; + this.transportRampEnd = null; + this.transportRampFrom = 1; + this.transportRampTo = 1; if (keepAlive) { this.frameLoopRunning = true; this.nextFrameTime = wasRunning ? Math.max(performance.now(), deadline - FRAME_DURATION_MS) : performance.now();