refactor: implement robust Opus decoding with error-resilient streams and transition to pull-based audio transmission for Discord output

This commit is contained in:
baharsah
2026-05-13 02:58:11 +07:00
parent ad7dcde47c
commit aa85dd9beb
3 changed files with 114 additions and 43 deletions

View File

@@ -41,6 +41,14 @@ export class DiscordPlayer {
this.player.play(resource);
}
public pause() {
this.player.pause(true);
}
public unpause() {
this.player.unpause();
}
public stop() {
this.player.stop();
}