Merge branch 'v0.23.x'

This commit is contained in:
Max Kellermann
2022-08-18 16:54:18 +02:00
4 changed files with 14 additions and 8 deletions

View File

@@ -23,6 +23,8 @@
#include "tag/ReplayGainInfo.hxx"
#include "config/ReplayGainConfig.hxx"
#include "mixer/MixerControl.hxx"
#include "mixer/MixerInternal.hxx"
#include "mixer/Listener.hxx"
#include "pcm/AudioFormat.hxx"
#include "pcm/Volume.hxx"
#include "util/Domain.hxx"
@@ -170,9 +172,11 @@ ReplayGainFilter::Update()
try {
mixer_set_volume(mixer, _volume);
/* TODO: emit this idle event only for the
current partition */
idle_add(IDLE_MIXER);
/* invoke the mixer's listener manually, just
in case the mixer implementation didn't do
that already (this depends on the
implementation) */
mixer->listener.OnMixerVolumeChanged(*mixer, _volume);
} catch (...) {
LogError(std::current_exception(),
"Failed to update hardware mixer");