mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:38:13 +00:00
AudioServer: Give the AudioClient a way to keep track of the main mix volume
This commit is contained in:
parent
e634fe6072
commit
60a7187db2
7 changed files with 24 additions and 1 deletions
|
@ -132,6 +132,14 @@ void Mixer::mix()
|
|||
}
|
||||
}
|
||||
|
||||
void Mixer::set_main_volume(int volume)
|
||||
{
|
||||
m_main_volume = volume;
|
||||
ClientConnection::for_each([volume](ClientConnection& client) {
|
||||
client.did_change_main_mix_volume({}, volume);
|
||||
});
|
||||
}
|
||||
|
||||
void Mixer::set_muted(bool muted)
|
||||
{
|
||||
if (m_muted == muted)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue