Commit 4f1e79b6 authored by Max Kellermann's avatar Max Kellermann

filter/ReplayGain: emit "mixer" event when replay gain changes volume

parent aa9933c0
...@@ -3,6 +3,7 @@ ver 0.23.1 (not yet released) ...@@ -3,6 +3,7 @@ ver 0.23.1 (not yet released)
- use decimal notation instead of scientific notation - use decimal notation instead of scientific notation
- "load" supports relative positions - "load" supports relative positions
* output * output
- emit "mixer" idle event when replay gain changes volume
- pipewire: emit "mixer" idle events on external volume change - pipewire: emit "mixer" idle events on external volume change
- pipewire: attempt to change the graph sample rate - pipewire: attempt to change the graph sample rate
- snapcast: fix time stamp bug which caused "Failed to get chunk" - snapcast: fix time stamp bug which caused "Failed to get chunk"
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "pcm/Volume.hxx" #include "pcm/Volume.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include "util/Domain.hxx" #include "util/Domain.hxx"
#include "Idle.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <cassert> #include <cassert>
...@@ -169,6 +170,10 @@ ReplayGainFilter::Update() ...@@ -169,6 +170,10 @@ ReplayGainFilter::Update()
try { try {
mixer_set_volume(mixer, _volume); mixer_set_volume(mixer, _volume);
/* TODO: emit this idle event only for the
current partition */
idle_add(IDLE_MIXER);
} catch (...) { } catch (...) {
LogError(std::current_exception(), LogError(std::current_exception(),
"Failed to update hardware mixer"); "Failed to update hardware mixer");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment