fix(audio/core): fix stream demuxer crashes, %clear range parsing, and ghost players

- audio: prevent EBML demuxer crash by retaining paused HTTP stream mode
- audio: remux Ogg containers to WebM and pass direct WebM on zero-seek
- audio: suppress uncaught demuxer stream errors in process exception handler
- commands: fix NaN bug in %clear range deletion and sanitize option parsing
- voice: eliminate ghost players on guild/channel delete and voice disconnects
- stats: optimize MySQL playback persistence and track counters
This commit is contained in:
NoLogicAlan committed 2026-10-25 02:07:24 +03:00
1 parent 618ecb1a0b
commit af2c725b54
4 files changed
+40 -7

No files matched your search

+12 -2
View File
@@ -319,8 +319,18 @@ export class FluxerAudioBridge extends EventEmitter {
opened.stream.destroy();
return "stopped";
}
this._stream = opened.stream;
await conn.play(opened.stream);
let streamToPlay = opened.stream;
if (opened.kind === "ogg") {
logger.player("[AudioBridge] Remuxing Ogg stream to WebM for voice connection...");
const remuxed = await this._remuxOggToWebM(opened.stream);
if (generation !== this._playGeneration) {
remuxed?.destroy?.();
return "stopped";
}
streamToPlay = remuxed;
}
this._stream = streamToPlay;
await conn.play(streamToPlay);
} catch (e) {
if (generation !== this._playGeneration) return "stopped";
if (this._stopped || !this._playing) return "stopped";