summaryrefslogtreecommitdiff
path: root/src/Partition.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-25 12:51:55 +0100
committerMax Kellermann <max@musicpd.org>2016-11-25 12:51:55 +0100
commitee57c3490a7a969f8ca79f8adc3c6e8e8d802a84 (patch)
tree3f6272c87db43f93cc8e3be8c7d5822b4831fd0d /src/Partition.cxx
parent77c1f5487668569abb24dc458c40f019539dda52 (diff)
{decoder,player}/Control: add ReplayGain{Config,Mode} attributes
Don't use the global variables in class DecoderBridge; instead, forward these values to the decoder thread via PlayerControl and DecoderControl.
Diffstat (limited to 'src/Partition.cxx')
-rw-r--r--src/Partition.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx
index f3027e05c..03de4d16a 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -23,6 +23,7 @@
#include "DetachedSong.hxx"
#include "mixer/Volume.hxx"
#include "IdleFlags.hxx"
+#include "ReplayGainGlobal.hxx"
Partition::Partition(Instance &_instance,
unsigned max_length,
@@ -50,6 +51,8 @@ Partition::UpdateEffectiveReplayGainMode(ReplayGainMode mode)
? ReplayGainMode::TRACK
: ReplayGainMode::ALBUM;
+ pc.LockSetReplayGain(replay_gain_config, mode);
+
outputs.SetReplayGainMode(mode);
}