mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +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
|
@ -78,7 +78,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
break;
|
||||
}
|
||||
case AudioVariable::Mute: {
|
||||
bool muted = audio_client->get_muted();
|
||||
bool muted = audio_client->is_main_mix_muted();
|
||||
if (human_mode)
|
||||
outln("Muted: {}", muted ? "Yes" : "No");
|
||||
else
|
||||
|
@ -151,7 +151,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
case AudioVariable::Mute: {
|
||||
bool& mute = to_set.value.get<bool>();
|
||||
audio_client->set_muted(mute);
|
||||
audio_client->set_main_mix_muted(mute);
|
||||
break;
|
||||
}
|
||||
case AudioVariable::SampleRate: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue