1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:17:35 +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

@ -76,6 +76,11 @@ void ClientConnection::did_change_muted_state(Badge<Mixer>, bool muted)
post_message(Messages::AudioClient::MutedStateChanged(muted));
}
void ClientConnection::did_change_main_mix_volume(Badge<Mixer>, int volume)
{
post_message(Messages::AudioClient::MainMixVolumeChanged(volume));
}
OwnPtr<Messages::AudioServer::GreetResponse> ClientConnection::handle(const Messages::AudioServer::Greet&)
{
return make<Messages::AudioServer::GreetResponse>(client_id());