diff options
author | Max Kellermann <max@duempel.org> | 2014-02-05 00:02:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-05 00:02:02 +0100 |
commit | e8938b1069739eca2bd2f27705c1c7783e834e59 (patch) | |
tree | 482330dbf228c12a60c9a401f0428cc4e292e234 /test/read_mixer.cxx | |
parent | 4a283330394fd2e1541a03bd312e5fadf54aa055 (diff) | |
download | mpd-e8938b1069739eca2bd2f27705c1c7783e834e59.tar.gz mpd-e8938b1069739eca2bd2f27705c1c7783e834e59.tar.xz mpd-e8938b1069739eca2bd2f27705c1c7783e834e59.zip |
MixerPlugin: add EventLoop& init() parameter
Diffstat (limited to 'test/read_mixer.cxx')
-rw-r--r-- | test/read_mixer.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/read_mixer.cxx b/test/read_mixer.cxx index 095d9945d..4849b7a8c 100644 --- a/test/read_mixer.cxx +++ b/test/read_mixer.cxx @@ -35,8 +35,6 @@ #include <string.h> #include <unistd.h> -EventLoop *main_loop; - #ifdef HAVE_PULSE #include "output/plugins/PulseOutputPlugin.hxx" @@ -115,10 +113,10 @@ int main(int argc, gcc_unused char **argv) g_thread_init(NULL); #endif - main_loop = new EventLoop; + EventLoop event_loop; Error error; - Mixer *mixer = mixer_new(&alsa_mixer_plugin, nullptr, + Mixer *mixer = mixer_new(event_loop, &alsa_mixer_plugin, nullptr, config_param(), error); if (mixer == NULL) { LogError(error, "mixer_new() failed"); @@ -135,8 +133,6 @@ int main(int argc, gcc_unused char **argv) mixer_close(mixer); mixer_free(mixer); - delete main_loop; - assert(volume >= -1 && volume <= 100); if (volume < 0) { |