1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +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

@ -59,10 +59,12 @@ public:
Function<void(i32 buffer_id)> on_finish_playing_buffer;
Function<void(bool muted)> on_muted_state_change;
Function<void(int volume)> on_main_mix_volume_change;
private:
virtual void handle(const Messages::AudioClient::FinishedPlayingBuffer&) override;
virtual void handle(const Messages::AudioClient::MutedStateChanged&) override;
virtual void handle(const Messages::AudioClient::MainMixVolumeChanged&) override;
};
}