diff options
author | kleines Filmröllchen <malu.bertsch@gmail.com> | 2021-08-27 23:57:02 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 23:38:57 +0200 |
commit | bd17da9f9e9227c37aa1b0da48311db2819f723d (patch) | |
tree | 487cef01d1de61b72aec93b5fd4951b72e2eaa69 /Userland/Libraries/LibAudio/ClientConnection.h | |
parent | 5300c9e6b4203b45ef86af89a917689740336e42 (diff) | |
download | serenity-bd17da9f9e9227c37aa1b0da48311db2819f723d.zip |
Audio: Add per-client volume
Note: While ClientAudioStream has had a volume property, it is only now
used in the mixer.
Diffstat (limited to 'Userland/Libraries/LibAudio/ClientConnection.h')
-rw-r--r-- | Userland/Libraries/LibAudio/ClientConnection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibAudio/ClientConnection.h b/Userland/Libraries/LibAudio/ClientConnection.h index 226b65215f..ef0f8084d8 100644 --- a/Userland/Libraries/LibAudio/ClientConnection.h +++ b/Userland/Libraries/LibAudio/ClientConnection.h @@ -28,11 +28,13 @@ public: Function<void(i32 buffer_id)> on_finish_playing_buffer; Function<void(bool muted)> on_muted_state_change; Function<void(double volume)> on_main_mix_volume_change; + Function<void(double volume)> on_client_volume_change; private: virtual void finished_playing_buffer(i32) override; virtual void muted_state_changed(bool) override; virtual void main_mix_volume_changed(double) override; + virtual void client_volume_changed(double) override; }; } |