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:
parent
e634fe6072
commit
60a7187db2
7 changed files with 24 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue