1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

AudioServer: Broadcast muted state changes to all clients

This commit is contained in:
Andreas Kling 2019-11-23 17:21:12 +01:00
parent 00ab9488ad
commit 84cb91de38
6 changed files with 37 additions and 1 deletions

View file

@ -29,6 +29,10 @@ public:
void set_paused(bool paused);
void clear_buffer(bool paused = false);
Function<void(i32 buffer_id)> on_finish_playing_buffer;
Function<void(bool muted)> on_muted_state_change;
private:
virtual void handle(const AudioClient::FinishedPlayingBuffer&) override;
virtual void handle(const AudioClient::MutedStateChanged&) override;
};