summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibAudio
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibAudio')
-rw-r--r--Userland/Libraries/LibAudio/ClientConnection.cpp6
-rw-r--r--Userland/Libraries/LibAudio/ClientConnection.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibAudio/ClientConnection.cpp b/Userland/Libraries/LibAudio/ClientConnection.cpp
index 949683e42a..07d4312d5c 100644
--- a/Userland/Libraries/LibAudio/ClientConnection.cpp
+++ b/Userland/Libraries/LibAudio/ClientConnection.cpp
@@ -54,4 +54,10 @@ void ClientConnection::main_mix_volume_changed(double volume)
on_main_mix_volume_change(volume);
}
+void ClientConnection::client_volume_changed(double volume)
+{
+ if (on_client_volume_change)
+ on_client_volume_change(volume);
+}
+
}
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;
};
}