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

+7 -3
View File
@@ -141,6 +141,11 @@ const StreamPipeline = {
);
}
if (seekMs <= 0 && routed.kind === "webm") {
logger.player("[AudioBridge] Direct WebM stream open (zero-seek passthrough)");
return { stream: routed.stream, kind: "webm" };
}
const positioner = new StreamPositioner({ kind: routed.kind, seekMs });
const out = routed.stream.pipe(positioner);
logger.player("[AudioBridge] Positioned stream open (kind=" + routed.kind + ", seek=" + seekMs + "ms)");
@@ -262,9 +267,8 @@ const StreamPipeline = {
});
oggStream.pipe(demuxer).pipe(muxer);
await headPromise;
const wrapper = Object.create(muxer);
wrapper.getDurationMs = () => frameCount * OPUS_FRAME_MS;
return wrapper;
muxer.getDurationMs = () => frameCount * OPUS_FRAME_MS;
return muxer;
},
/**