From fc30e1d55966553fa2653297c15421994b1aa2bd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Dec 2016 13:14:06 +0100 Subject: [PATCH] Partition: pass ReplayGainConfig to constructor --- src/Main.cxx | 3 ++- src/Partition.cxx | 4 ++-- src/Partition.hxx | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Main.cxx b/src/Main.cxx index 98c36faac..40df1798b 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -329,7 +329,8 @@ initialize_decoder_and_player(void) instance->partition = new Partition(*instance, max_length, buffered_chunks, - buffered_before_play); + buffered_before_play, + replay_gain_config); } void diff --git a/src/Partition.cxx b/src/Partition.cxx index 309d5e4fd..8a55e7d28 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -23,12 +23,12 @@ #include "DetachedSong.hxx" #include "mixer/Volume.hxx" #include "IdleFlags.hxx" -#include "ReplayGainGlobal.hxx" Partition::Partition(Instance &_instance, unsigned max_length, unsigned buffer_chunks, - unsigned buffered_before_play) + unsigned buffered_before_play, + const ReplayGainConfig &replay_gain_config) :instance(_instance), global_events(instance.event_loop, BIND_THIS_METHOD(OnGlobalEvent)), playlist(max_length, *this), diff --git a/src/Partition.hxx b/src/Partition.hxx index b7bccca6b..161b6dbf5 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -55,7 +55,8 @@ struct Partition final : QueueListener, PlayerListener, MixerListener { Partition(Instance &_instance, unsigned max_length, unsigned buffer_chunks, - unsigned buffered_before_play); + unsigned buffered_before_play, + const ReplayGainConfig &replay_gain_config); void EmitGlobalEvent(unsigned mask) { global_events.OrMask(mask);