mirror of https://github.com/jetkvm/kvm.git
fix(audio): correct mute state broadcast in audio control service
Use BroadcastAudioMuteChanged instead of BroadcastAudioDeviceChanged to properly reflect mute state changes
This commit is contained in:
parent
f5e582f941
commit
776982995b
|
|
@ -29,7 +29,7 @@ func (s *AudioControlService) MuteAudio(muted bool) error {
|
|||
|
||||
// Broadcast audio mute state change via WebSocket
|
||||
broadcaster := GetAudioEventBroadcaster()
|
||||
broadcaster.BroadcastAudioDeviceChanged(!muted, "audio_mute_changed")
|
||||
broadcaster.BroadcastAudioMuteChanged(muted)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue