mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Audio: Add per-client volume
Note: While ClientAudioStream has had a volume property, it is only now used in the mixer.
This commit is contained in:
parent
5300c9e6b4
commit
bd17da9f9e
7 changed files with 33 additions and 1 deletions
|
@ -26,7 +26,8 @@ public:
|
|||
explicit ClientConnection(NonnullRefPtr<Core::LocalSocket>, int client_id, Mixer& mixer);
|
||||
~ClientConnection() override;
|
||||
|
||||
void did_finish_playing_buffer(Badge<BufferQueue>, int buffer_id);
|
||||
void did_finish_playing_buffer(Badge<ClientAudioStream>, int buffer_id);
|
||||
void did_change_client_volume(Badge<ClientAudioStream>, double volume);
|
||||
void did_change_muted_state(Badge<Mixer>, bool muted);
|
||||
void did_change_main_mix_volume(Badge<Mixer>, double volume);
|
||||
|
||||
|
@ -37,6 +38,8 @@ public:
|
|||
private:
|
||||
virtual Messages::AudioServer::GetMainMixVolumeResponse get_main_mix_volume() override;
|
||||
virtual void set_main_mix_volume(double) override;
|
||||
virtual Messages::AudioServer::GetSelfVolumeResponse get_self_volume() override;
|
||||
virtual void set_self_volume(double) override;
|
||||
virtual Messages::AudioServer::EnqueueBufferResponse enqueue_buffer(Core::AnonymousBuffer const&, i32, int) override;
|
||||
virtual Messages::AudioServer::GetRemainingSamplesResponse get_remaining_samples() override;
|
||||
virtual Messages::AudioServer::GetPlayedSamplesResponse get_played_samples() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue