mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user