summaryrefslogtreecommitdiff
path: root/src/Partition.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-24 15:18:57 +0100
committerMax Kellermann <max@musicpd.org>2016-11-24 15:18:57 +0100
commit0759d721085478f94d84f1e9ee1ecf6f7d8e85a0 (patch)
treedf4a554b972694cda042f21c80f4567e1f9214f1 /src/Partition.hxx
parent9b9144f25de86fd6a5a83ffbdabaa0a4e3881080 (diff)
Partition: add UpdateEffectiveReplayGainMode()
Move code from replay_gain_get_real_mode().
Diffstat (limited to 'src/Partition.hxx')
-rw-r--r--src/Partition.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Partition.hxx b/src/Partition.hxx
index 9a47f23d1..5cfba615e 100644
--- a/src/Partition.hxx
+++ b/src/Partition.hxx
@@ -176,6 +176,14 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
playlist.SetConsume(new_value);
}
+ /**
+ * Publishes the effective #ReplayGainMode to all subsystems.
+ * #REPLAY_GAIN_AUTO is substituted.
+ *
+ * @param mode the configured mode
+ */
+ void UpdateEffectiveReplayGainMode(ReplayGainMode mode);
+
#ifdef ENABLE_DATABASE
/**
* Returns the global #Database instance. May return nullptr