1
Fork 0
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:
Benoît Lormeau 2020-07-21 03:16:48 +02:00 committed by Andreas Kling
parent e634fe6072
commit 60a7187db2
7 changed files with 24 additions and 1 deletions

View file

@ -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)