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/GmeDecoderPlugin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/decoder/GmeDecoderPlugin.cxx') diff --git a/src/decoder/GmeDecoderPlugin.cxx b/src/decoder/GmeDecoderPlugin.cxx index 8158ab553..d8edbe4cb 100644 --- a/src/decoder/GmeDecoderPlugin.cxx +++ b/src/decoder/GmeDecoderPlugin.cxx @@ -153,9 +153,9 @@ gme_file_decode(struct decoder *decoder, const char *path_fs) /* initialize the MPD decoder */ GError *error = nullptr; - struct audio_format audio_format; - if (!audio_format_init_checked(&audio_format, GME_SAMPLE_RATE, - SAMPLE_FORMAT_S16, GME_CHANNELS, + AudioFormat audio_format; + if (!audio_format_init_checked(audio_format, GME_SAMPLE_RATE, + SampleFormat::S16, GME_CHANNELS, &error)) { g_warning("%s", error->message); g_error_free(error); @@ -164,7 +164,7 @@ gme_file_decode(struct decoder *decoder, const char *path_fs) return; } - decoder_initialized(decoder, &audio_format, true, song_len); + decoder_initialized(decoder, audio_format, true, song_len); gme_err = gme_start_track(emu, song_num); if (gme_err != nullptr) -- cgit v1.2.3