From 0759d721085478f94d84f1e9ee1ecf6f7d8e85a0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Nov 2016 15:18:57 +0100 Subject: Partition: add UpdateEffectiveReplayGainMode() Move code from replay_gain_get_real_mode(). --- src/Partition.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Partition.hxx') 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 -- cgit v1.2.3