From d1e7b4e38136f9342aad76c685a13adf0e69f869 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Aug 2013 21:00:50 +0200 Subject: audio_format: convert to C++ --- src/decoder/MadDecoderPlugin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/decoder/MadDecoderPlugin.cxx') diff --git a/src/decoder/MadDecoderPlugin.cxx b/src/decoder/MadDecoderPlugin.cxx index b75e12343..04d171b9b 100644 --- a/src/decoder/MadDecoderPlugin.cxx +++ b/src/decoder/MadDecoderPlugin.cxx @@ -1124,11 +1124,11 @@ mp3_decode(struct decoder *decoder, struct input_stream *input_stream) return; } - struct audio_format audio_format; + AudioFormat audio_format; GError *error = nullptr; - if (!audio_format_init_checked(&audio_format, + if (!audio_format_init_checked(audio_format, data.frame.header.samplerate, - SAMPLE_FORMAT_S24_P32, + SampleFormat::S24_P32, MAD_NCHANNELS(&data.frame.header), &error)) { g_warning("%s", error->message); @@ -1138,7 +1138,7 @@ mp3_decode(struct decoder *decoder, struct input_stream *input_stream) return; } - decoder_initialized(decoder, &audio_format, + decoder_initialized(decoder, audio_format, input_stream_is_seekable(input_stream), data.total_time); -- cgit v1.2.3