aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-21 08:55:52 +0100
committerMax Kellermann <max@duempel.org>2014-02-21 10:22:35 +0100
commit30a82076ba50a21c4df5fe4c46c8fc2ed25a7486 (patch)
tree6d7f28eb99c4e708d7b7609a203f78d565475c89 /src/PlayerControl.cxx
parent860339c132f76ae6710b2d96851b3f55a273c1da (diff)
downloadmpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.gz
mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.xz
mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.zip
PlayerListener: new interface to replace GlobalEvents access
Diffstat (limited to 'src/PlayerControl.cxx')
-rw-r--r--src/PlayerControl.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlayerControl.cxx b/src/PlayerControl.cxx
index bca3cc937..244b64f5c 100644
--- a/src/PlayerControl.cxx
+++ b/src/PlayerControl.cxx
@@ -26,10 +26,11 @@
#include <assert.h>
-PlayerControl::PlayerControl(MultipleOutputs &_outputs,
+PlayerControl::PlayerControl(PlayerListener &_listener,
+ MultipleOutputs &_outputs,
unsigned _buffer_chunks,
unsigned _buffered_before_play)
- :outputs(_outputs),
+ :listener(_listener), outputs(_outputs),
buffer_chunks(_buffer_chunks),
buffered_before_play(_buffered_before_play),
command(PlayerCommand::NONE),