merge: integrate issue 6 mute synchronization

This commit is contained in:
illusia committed 2026-09-18 18:03:05 +08:00
commit 380fb67090
6 files changed
+35 -8

No files matched your search

+1 -1
View File
@@ -1953,7 +1953,7 @@ export function useVoiceWebSocket() {
accumLen = 0;
if (webrtcActive.value) micStream?.getAudioTracks().forEach((track) => { track.enabled = !muted; });
if (webrtcMixMicGain) webrtcMixMicGain.gain.value = muted ? 0 : inputVolume.value;
if (webrtcActive.value) sendCmd("setMicrophoneMuted", { muted });
sendCmd("setMicrophoneMuted", { muted });
if (muted && state.tsClientId) clearSpeaking(state.tsClientId);
void saveAudioPreferences();
}