diff options
author | Max Kellermann <max@duempel.org> | 2013-04-16 21:33:25 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-04-16 21:33:25 +0200 |
commit | cb8449a66dfa7503951d3c9a27a957918849ac57 (patch) | |
tree | 33d1af378739fb46d12569b03022697226f5b40f /test | |
parent | 621467717d93221a63c9234d4273d9629635c30f (diff) | |
download | mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.tar.gz mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.tar.xz mpd-cb8449a66dfa7503951d3c9a27a957918849ac57.zip |
MixerInternal: convert to class
Diffstat (limited to 'test')
-rw-r--r-- | test/read_mixer.cxx | 3 | ||||
-rw-r--r-- | test/run_filter.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/read_mixer.cxx b/test/read_mixer.cxx index 9f9db1e0c..c96f0f630 100644 --- a/test/read_mixer.cxx +++ b/test/read_mixer.cxx @@ -111,7 +111,6 @@ pcm_volume(G_GNUC_UNUSED void *buffer, G_GNUC_UNUSED size_t length, int main(int argc, G_GNUC_UNUSED char **argv) { GError *error = NULL; - struct mixer *mixer; bool success; int volume; @@ -124,7 +123,7 @@ int main(int argc, G_GNUC_UNUSED char **argv) main_loop = new EventLoop(EventLoop::Default()); - mixer = mixer_new(&alsa_mixer_plugin, NULL, NULL, &error); + Mixer *mixer = mixer_new(&alsa_mixer_plugin, NULL, NULL, &error); if (mixer == NULL) { g_printerr("mixer_new() failed: %s\n", error->message); g_error_free(error); diff --git a/test/run_filter.cxx b/test/run_filter.cxx index 0b8078c1a..8dde8fb65 100644 --- a/test/run_filter.cxx +++ b/test/run_filter.cxx @@ -36,7 +36,7 @@ #include <unistd.h> bool -mixer_set_volume(G_GNUC_UNUSED struct mixer *mixer, +mixer_set_volume(gcc_unused Mixer *mixer, G_GNUC_UNUSED unsigned volume, G_GNUC_UNUSED GError **error_r) { return true; |