Partition: un-inline the constructor

This commit is contained in:
Max Kellermann
2016-03-05 19:05:04 +01:00
parent c0bda1b103
commit 710def8e38
2 changed files with 11 additions and 4 deletions

View File

@@ -25,6 +25,16 @@
#include "Idle.hxx" #include "Idle.hxx"
#include "GlobalEvents.hxx" #include "GlobalEvents.hxx"
Partition::Partition(Instance &_instance,
unsigned max_length,
unsigned buffer_chunks,
unsigned buffered_before_play)
:instance(_instance), playlist(max_length),
outputs(*this),
pc(*this, outputs, buffer_chunks, buffered_before_play)
{
}
void void
Partition::EmitIdle(unsigned mask) Partition::EmitIdle(unsigned mask)
{ {

View File

@@ -48,10 +48,7 @@ struct Partition final : private PlayerListener, private 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);
:instance(_instance), playlist(max_length),
outputs(*this),
pc(*this, outputs, buffer_chunks, buffered_before_play) {}
void EmitIdle(unsigned mask); void EmitIdle(unsigned mask);