diff options
Diffstat (limited to 'src/decoder/VorbisDecoderPlugin.cxx')
-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); |