Merge branch 'v0.23.x'
This commit is contained in:
@@ -188,8 +188,8 @@ MultipleOutputs::SetSoftwareVolume(unsigned volume) noexcept
|
||||
auto *mixer = ao->GetMixer();
|
||||
|
||||
if (mixer != nullptr &&
|
||||
(&mixer->plugin == &software_mixer_plugin ||
|
||||
&mixer->plugin == &null_mixer_plugin))
|
||||
(mixer->IsPlugin(software_mixer_plugin) ||
|
||||
mixer->IsPlugin(null_mixer_plugin)))
|
||||
mixer_set_volume(mixer, volume);
|
||||
}
|
||||
}
|
||||
|
@@ -92,7 +92,7 @@ mixer_close(Mixer *mixer)
|
||||
void
|
||||
mixer_auto_close(Mixer *mixer)
|
||||
{
|
||||
if (!mixer->plugin.global)
|
||||
if (!mixer->IsGlobal())
|
||||
mixer_close(mixer);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ mixer_get_volume(Mixer *mixer)
|
||||
|
||||
assert(mixer != nullptr);
|
||||
|
||||
if (mixer->plugin.global && !mixer->failure)
|
||||
if (mixer->IsGlobal() && !mixer->failure)
|
||||
mixer_open(mixer);
|
||||
|
||||
const std::scoped_lock<Mutex> protect(mixer->mutex);
|
||||
@@ -128,7 +128,7 @@ mixer_set_volume(Mixer *mixer, unsigned volume)
|
||||
assert(mixer != nullptr);
|
||||
assert(volume <= 100);
|
||||
|
||||
if (mixer->plugin.global && !mixer->failure)
|
||||
if (mixer->IsGlobal() && !mixer->failure)
|
||||
mixer_open(mixer);
|
||||
|
||||
const std::scoped_lock<Mutex> protect(mixer->mutex);
|
||||
|
Reference in New Issue
Block a user