fix(audio): reset gain after graceful stop

This commit is contained in:
EvolvedGhost committed 2026-10-17 23:40:20 +08:00
1 parent 7896c9c9bf
commit 7ee8b6f986
1 file changed
+4
+4
View File
@@ -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();