mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-12-01 02:12:50 +08:00
fix(audio): reset gain after graceful stop
This commit is contained in:
1 parent
7896c9c9bf
commit
7ee8b6f986
1 file changed
+4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user