diff options
author | Max Kellermann <max@duempel.org> | 2013-01-30 23:40:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-31 00:26:55 +0100 |
commit | 361404fd59e817560e4564f15466e94c2a0d7551 (patch) | |
tree | 2e8eab59d93b24e496576be0ccdcfc3bf70d54bf /test/run_output.cxx | |
parent | 762c91b7f1024ff81d3dd39b217995d817030ef8 (diff) | |
download | mpd-361404fd59e817560e4564f15466e94c2a0d7551.tar.gz mpd-361404fd59e817560e4564f15466e94c2a0d7551.tar.xz mpd-361404fd59e817560e4564f15466e94c2a0d7551.zip |
pcm_convert: convert to C++
Diffstat (limited to 'test/run_output.cxx')
-rw-r--r-- | test/run_output.cxx | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/test/run_output.cxx b/test/run_output.cxx index e9daf3c1c..f76e6fc76 100644 --- a/test/run_output.cxx +++ b/test/run_output.cxx @@ -27,12 +27,12 @@ #include "IOThread.hxx" #include "fs/Path.hxx" #include "AudioParser.hxx" +#include "PcmConvert.hxx" extern "C" { #include "output_plugin.h" #include "output_internal.h" #include "filter_registry.h" -#include "pcm_convert.h" } #include "PlayerControl.hxx" @@ -52,21 +52,15 @@ GlobalEvents::Emit(gcc_unused Event event) { } -void pcm_convert_init(G_GNUC_UNUSED struct pcm_convert_state *state) -{ -} - -void pcm_convert_deinit(G_GNUC_UNUSED struct pcm_convert_state *state) -{ -} +PcmConvert::PcmConvert() {} +PcmConvert::~PcmConvert() {} const void * -pcm_convert(G_GNUC_UNUSED struct pcm_convert_state *state, - G_GNUC_UNUSED const struct audio_format *src_format, - G_GNUC_UNUSED const void *src, G_GNUC_UNUSED size_t src_size, - G_GNUC_UNUSED const struct audio_format *dest_format, - G_GNUC_UNUSED size_t *dest_size_r, - GError **error_r) +PcmConvert::Convert(gcc_unused const audio_format *src_format, + gcc_unused const void *src, gcc_unused size_t src_size, + gcc_unused const audio_format *dest_format, + gcc_unused size_t *dest_size_r, + gcc_unused GError **error_r) { g_set_error(error_r, pcm_convert_quark(), 0, "Not implemented"); |