mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
fix: synchronize microphone mute state
This commit is contained in:
1 parent
fae21ec086
commit
bcf212738b
6 files changed
+35
-8
No files matched your search
@@ -1878,7 +1878,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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user