From f5a923b9d16e4c63942a033d1bdb2ab150aae342 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 27 Jan 2014 08:20:25 +0100 Subject: OutputAll: convert to class, move instance to class Partition Another big chunk of code for multi-player support. --- src/Partition.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Partition.hxx') diff --git a/src/Partition.hxx b/src/Partition.hxx index 4a5bcc6c7..3ee110654 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -21,9 +21,11 @@ #define MPD_PARTITION_HXX #include "Playlist.hxx" +#include "output/MultipleOutputs.hxx" #include "PlayerControl.hxx" struct Instance; +class MultipleOutputs; /** * A partition of the Music Player Daemon. It is a separate unit with @@ -34,6 +36,8 @@ struct Partition { struct playlist playlist; + MultipleOutputs outputs; + PlayerControl pc; Partition(Instance &_instance, @@ -41,8 +45,7 @@ struct Partition { unsigned buffer_chunks, unsigned buffered_before_play) :instance(_instance), playlist(max_length), - pc(buffer_chunks, buffered_before_play) { - } + pc(outputs, buffer_chunks, buffered_before_play) {} void ClearQueue() { playlist.Clear(pc); -- cgit v1.2.3