diff options
author | Max Kellermann <max@duempel.org> | 2014-02-21 08:55:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-21 10:22:35 +0100 |
commit | 30a82076ba50a21c4df5fe4c46c8fc2ed25a7486 (patch) | |
tree | 6d7f28eb99c4e708d7b7609a203f78d565475c89 /test/run_output.cxx | |
parent | 860339c132f76ae6710b2d96851b3f55a273c1da (diff) | |
download | mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.gz mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.tar.xz mpd-30a82076ba50a21c4df5fe4c46c8fc2ed25a7486.zip |
PlayerListener: new interface to replace GlobalEvents access
Diffstat (limited to '')
-rw-r--r-- | test/run_output.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
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; |