Commit fc30e1d5 authored by Max Kellermann's avatar Max Kellermann

Partition: pass ReplayGainConfig to constructor

parent cd4bb444
......@@ -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
......
......@@ -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),
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment