Partition: add UpdateEffectiveReplayGainMode()

Move code from replay_gain_get_real_mode().
This commit is contained in:
Max Kellermann
2016-11-24 15:18:57 +01:00
parent 9b9144f25d
commit 0759d72108
6 changed files with 22 additions and 23 deletions

View File

@@ -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