From 30a82076ba50a21c4df5fe4c46c8fc2ed25a7486 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 21 Feb 2014 08:55:52 +0100 Subject: PlayerListener: new interface to replace GlobalEvents access --- test/run_output.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/run_output.cxx b/test/run_output.cxx index fca5146df..15383fd2a 100644 --- a/test/run_output.cxx +++ b/test/run_output.cxx @@ -53,10 +53,11 @@ filter_plugin_by_name(gcc_unused const char *name) return NULL; } -PlayerControl::PlayerControl(gcc_unused MultipleOutputs &_outputs, +PlayerControl::PlayerControl(PlayerListener &_listener, + MultipleOutputs &_outputs, gcc_unused unsigned _buffer_chunks, gcc_unused unsigned _buffered_before_play) - :outputs(_outputs) {} + :listener(_listener), outputs(_outputs) {} PlayerControl::~PlayerControl() {} static AudioOutput * @@ -69,7 +70,8 @@ load_audio_output(EventLoop &event_loop, const char *name) return nullptr; } - static struct PlayerControl dummy_player_control(*(MultipleOutputs *)nullptr, + static struct PlayerControl dummy_player_control(*(PlayerListener *)nullptr, + *(MultipleOutputs *)nullptr, 32, 4); Error error; -- cgit v1.2.3