mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +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:
parent
60fa8ac109
commit
c78a8b94c5
9 changed files with 22 additions and 22 deletions
|
@ -43,9 +43,9 @@ void ClientConnection::did_finish_playing_buffer(Badge<ClientAudioStream>, int b
|
|||
async_finished_playing_buffer(buffer_id);
|
||||
}
|
||||
|
||||
void ClientConnection::did_change_muted_state(Badge<Mixer>, bool muted)
|
||||
void ClientConnection::did_change_main_mix_muted_state(Badge<Mixer>, bool muted)
|
||||
{
|
||||
async_muted_state_changed(muted);
|
||||
async_main_mix_muted_state_changed(muted);
|
||||
}
|
||||
|
||||
void ClientConnection::did_change_main_mix_volume(Badge<Mixer>, double volume)
|
||||
|
@ -140,12 +140,12 @@ Messages::AudioServer::GetPlayingBufferResponse ClientConnection::get_playing_bu
|
|||
return id;
|
||||
}
|
||||
|
||||
Messages::AudioServer::GetMutedResponse ClientConnection::get_muted()
|
||||
Messages::AudioServer::IsMainMixMutedResponse ClientConnection::is_main_mix_muted()
|
||||
{
|
||||
return m_mixer.is_muted();
|
||||
}
|
||||
|
||||
void ClientConnection::set_muted(bool muted)
|
||||
void ClientConnection::set_main_mix_muted(bool muted)
|
||||
{
|
||||
m_mixer.set_muted(muted);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue