diff --git a/NEWS b/NEWS index 5647c4524..2a4aca9d4 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ver 0.23.1 (not yet released) - use decimal notation instead of scientific notation - "load" supports relative positions * output + - emit "mixer" idle event when replay gain changes volume - pipewire: emit "mixer" idle events on external volume change - pipewire: attempt to change the graph sample rate - snapcast: fix time stamp bug which caused "Failed to get chunk" diff --git a/src/filter/plugins/ReplayGainFilterPlugin.cxx b/src/filter/plugins/ReplayGainFilterPlugin.cxx index c867640f9..3c2f6b351 100644 --- a/src/filter/plugins/ReplayGainFilterPlugin.cxx +++ b/src/filter/plugins/ReplayGainFilterPlugin.cxx @@ -27,6 +27,7 @@ #include "pcm/Volume.hxx" #include "util/ConstBuffer.hxx" #include "util/Domain.hxx" +#include "Idle.hxx" #include "Log.hxx" #include @@ -169,6 +170,10 @@ ReplayGainFilter::Update() try { mixer_set_volume(mixer, _volume); + + /* TODO: emit this idle event only for the + current partition */ + idle_add(IDLE_MIXER); } catch (...) { LogError(std::current_exception(), "Failed to update hardware mixer");