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
947b4f9528
commit
d3e2b2dff2
|
@ -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