mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
AudioServer: Broadcast muted state changes to all clients
This commit is contained in:
parent
00ab9488ad
commit
84cb91de38
6 changed files with 37 additions and 1 deletions
|
@ -101,7 +101,12 @@ void ASMixer::mix()
|
|||
|
||||
void ASMixer::set_muted(bool muted)
|
||||
{
|
||||
if (m_muted == muted)
|
||||
return;
|
||||
m_muted = muted;
|
||||
ASClientConnection::for_each([muted](ASClientConnection& client) {
|
||||
client.did_change_muted_state({}, muted);
|
||||
});
|
||||
}
|
||||
|
||||
ASBufferQueue::ASBufferQueue(ASClientConnection& client)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue