feat: warn when shared tab/system audio stays silent

Windows system audio only covers the default playback device, so music on
another device is mixed in as pure silence with no hint why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-03 09:13:23 +00:00
1 parent 5268c8f57a
commit 9d736dbfdd
6 files changed
+17 -1

No files matched your search

+6
View File
@@ -8735,6 +8735,12 @@ function AppInner() {
tabAudioRef.current = stream;
micCaptureRef.current?.setExtraAudio(stream);
setTabAudioOn(true);
// Windows system audio only covers the default output device; music on
// another device arrives as pure silence, with nothing else to tell why.
setTimeout(() => {
if (tabAudioRef.current === stream && micCaptureRef.current && micCaptureRef.current.extraPeak < 1e-4)
appendLog({ text: t("tabAudio.silent"), kind: "error" });
}, 5000);
};
const handleToggleMicTest = () => {