mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +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
Notes:
sideshowbarker
2024-07-19 04:41:36 +09:00
Author: https://github.com/benit8
Commit: 60a7187db2
Pull-request: https://github.com/SerenityOS/serenity/pull/2845
Reviewed-by: https://github.com/awesomekling
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