diff options
author | Max Kellermann <max@duempel.org> | 2013-08-03 21:00:50 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-03 21:37:56 +0200 |
commit | d1e7b4e38136f9342aad76c685a13adf0e69f869 (patch) | |
tree | 49643b937ddfe735511b566a71398da5a945d7aa /src/decoder/VorbisDecoderPlugin.cxx | |
parent | 67f591a9ce60651da41afc499bd9a22e25314e35 (diff) | |
download | mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.gz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.xz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.zip |
audio_format: convert to C++
Diffstat (limited to '')
-rw-r--r-- | src/decoder/VorbisDecoderPlugin.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decoder/VorbisDecoderPlugin.cxx b/src/decoder/VorbisDecoderPlugin.cxx index 68d5a21f0..f51480d71 100644 --- a/src/decoder/VorbisDecoderPlugin.cxx +++ b/src/decoder/VorbisDecoderPlugin.cxx @@ -202,12 +202,12 @@ vorbis_stream_decode(struct decoder *decoder, return; } - struct audio_format audio_format; - if (!audio_format_init_checked(&audio_format, vi->rate, + AudioFormat audio_format; + if (!audio_format_init_checked(audio_format, vi->rate, #ifdef HAVE_TREMOR - SAMPLE_FORMAT_S16, + SampleFormat::S16, #else - SAMPLE_FORMAT_FLOAT, + SampleFormat::FLOAT, #endif vi->channels, &error)) { g_warning("%s", error->message); @@ -219,7 +219,7 @@ vorbis_stream_decode(struct decoder *decoder, if (total_time < 0) total_time = 0; - decoder_initialized(decoder, &audio_format, vis.seekable, total_time); + decoder_initialized(decoder, audio_format, vis.seekable, total_time); enum decoder_command cmd = decoder_get_command(decoder); |