aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_decoder.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-03 21:00:50 +0200
committerMax Kellermann <max@duempel.org>2013-08-03 21:37:56 +0200
commitd1e7b4e38136f9342aad76c685a13adf0e69f869 (patch)
tree49643b937ddfe735511b566a71398da5a945d7aa /test/run_decoder.cxx
parent67f591a9ce60651da41afc499bd9a22e25314e35 (diff)
downloadmpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.gz
mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.xz
mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.zip
audio_format: convert to C++
Diffstat (limited to 'test/run_decoder.cxx')
-rw-r--r--test/run_decoder.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index a05afb113..a5826b278 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -23,7 +23,7 @@
#include "DecoderAPI.hxx"
#include "InputInit.hxx"
#include "input_stream.h"
-#include "audio_format.h"
+#include "AudioFormat.hxx"
#include "stdbin.h"
#include <glib.h>
@@ -52,14 +52,14 @@ struct decoder {
void
decoder_initialized(struct decoder *decoder,
- const struct audio_format *audio_format,
+ const AudioFormat audio_format,
G_GNUC_UNUSED bool seekable,
G_GNUC_UNUSED float total_time)
{
struct audio_format_string af_string;
assert(!decoder->initialized);
- assert(audio_format_valid(audio_format));
+ assert(audio_format.IsValid());
g_printerr("audio_format=%s\n",
audio_format_to_string(audio_format, &af_string));