mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
AudioServer: Broadcast muted state changes to all clients
This commit is contained in:
parent
00ab9488ad
commit
84cb91de38
6 changed files with 37 additions and 1 deletions
|
@ -13,10 +13,14 @@ class ASClientConnection final : public IPC::Server::ConnectionNG<AudioServerEnd
|
|||
public:
|
||||
explicit ASClientConnection(CLocalSocket&, int client_id, ASMixer& mixer);
|
||||
~ASClientConnection() override;
|
||||
|
||||
void did_finish_playing_buffer(Badge<ASBufferQueue>, int buffer_id);
|
||||
void did_change_muted_state(Badge<ASMixer>, bool muted);
|
||||
|
||||
virtual void die() override;
|
||||
|
||||
static void for_each(Function<void(ASClientConnection&)>);
|
||||
|
||||
private:
|
||||
virtual OwnPtr<AudioServer::GreetResponse> handle(const AudioServer::Greet&) override;
|
||||
virtual OwnPtr<AudioServer::GetMainMixVolumeResponse> handle(const AudioServer::GetMainMixVolume&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue