Partition: pass ReplayGainConfig to constructor

This commit is contained in:
Max Kellermann 2016-12-03 13:14:06 +01:00
parent cd4bb444ff
commit fc30e1d559
3 changed files with 6 additions and 4 deletions

View File

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

View File

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

View File

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