1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:07:34 +00:00

Everywhere: Refactor 'muted' to 'main_mix_muted' in all AudioConnections

The 'muted' methods referred to the 'main mix muted' but it wasn't
really clear from the name. This change will be useful because in the
next commit, a 'self muted' state will be added to each audio client
connection.
This commit is contained in:
Elyse 2021-11-01 18:52:22 -06:00 committed by Brian Gianforcaro
parent 60fa8ac109
commit c78a8b94c5
9 changed files with 22 additions and 22 deletions

View file

@ -45,10 +45,10 @@ void ClientConnection::finished_playing_buffer(i32 buffer_id)
on_finish_playing_buffer(buffer_id);
}
void ClientConnection::muted_state_changed(bool muted)
void ClientConnection::main_mix_muted_state_changed(bool muted)
{
if (on_muted_state_change)
on_muted_state_change(muted);
if (on_main_mix_muted_state_change)
on_main_mix_muted_state_change(muted);
}
void ClientConnection::main_mix_volume_changed(double volume)

View file

@ -24,7 +24,7 @@ public:
void async_enqueue(Buffer const&);
Function<void(i32 buffer_id)> on_finish_playing_buffer;
Function<void(bool muted)> on_muted_state_change;
Function<void(bool muted)> on_main_mix_muted_state_change;
Function<void(double volume)> on_main_mix_volume_change;
Function<void(double volume)> on_client_volume_change;
@ -32,7 +32,7 @@ private:
ClientConnection();
virtual void finished_playing_buffer(i32) override;
virtual void muted_state_changed(bool) override;
virtual void main_mix_muted_state_changed(bool) override;
virtual void main_mix_volume_changed(double) override;
virtual void client_volume_changed(double) override;
};