Partition: pass ReplayGainConfig to constructor
This commit is contained in:
parent
cd4bb444ff
commit
fc30e1d559
@ -329,7 +329,8 @@ initialize_decoder_and_player(void)
|
|||||||
instance->partition = new Partition(*instance,
|
instance->partition = new Partition(*instance,
|
||||||
max_length,
|
max_length,
|
||||||
buffered_chunks,
|
buffered_chunks,
|
||||||
buffered_before_play);
|
buffered_before_play,
|
||||||
|
replay_gain_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -23,12 +23,12 @@
|
|||||||
#include "DetachedSong.hxx"
|
#include "DetachedSong.hxx"
|
||||||
#include "mixer/Volume.hxx"
|
#include "mixer/Volume.hxx"
|
||||||
#include "IdleFlags.hxx"
|
#include "IdleFlags.hxx"
|
||||||
#include "ReplayGainGlobal.hxx"
|
|
||||||
|
|
||||||
Partition::Partition(Instance &_instance,
|
Partition::Partition(Instance &_instance,
|
||||||
unsigned max_length,
|
unsigned max_length,
|
||||||
unsigned buffer_chunks,
|
unsigned buffer_chunks,
|
||||||
unsigned buffered_before_play)
|
unsigned buffered_before_play,
|
||||||
|
const ReplayGainConfig &replay_gain_config)
|
||||||
:instance(_instance),
|
:instance(_instance),
|
||||||
global_events(instance.event_loop, BIND_THIS_METHOD(OnGlobalEvent)),
|
global_events(instance.event_loop, BIND_THIS_METHOD(OnGlobalEvent)),
|
||||||
playlist(max_length, *this),
|
playlist(max_length, *this),
|
||||||
|
@ -55,7 +55,8 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
|
|||||||
Partition(Instance &_instance,
|
Partition(Instance &_instance,
|
||||||
unsigned max_length,
|
unsigned max_length,
|
||||||
unsigned buffer_chunks,
|
unsigned buffer_chunks,
|
||||||
unsigned buffered_before_play);
|
unsigned buffered_before_play,
|
||||||
|
const ReplayGainConfig &replay_gain_config);
|
||||||
|
|
||||||
void EmitGlobalEvent(unsigned mask) {
|
void EmitGlobalEvent(unsigned mask) {
|
||||||
global_events.OrMask(mask);
|
global_events.OrMask(mask);
|
||||||
|
Loading…
Reference in New Issue
Block a user