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 /test/test_vorbis_encoder.cxx | |
parent | 67f591a9ce60651da41afc499bd9a22e25314e35 (diff) |
audio_format: convert to C++
Diffstat (limited to 'test/test_vorbis_encoder.cxx')
-rw-r--r-- | test/test_vorbis_encoder.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_vorbis_encoder.cxx b/test/test_vorbis_encoder.cxx index 650480319..a523f9d72 100644 --- a/test/test_vorbis_encoder.cxx +++ b/test/test_vorbis_encoder.cxx @@ -20,7 +20,7 @@ #include "config.h" #include "EncoderList.hxx" #include "EncoderPlugin.hxx" -#include "audio_format.h" +#include "AudioFormat.hxx" #include "conf.h" #include "stdbin.h" #include "Tag.hxx" @@ -61,10 +61,8 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv) /* open the encoder */ - struct audio_format audio_format; - - audio_format_init(&audio_format, 44100, SAMPLE_FORMAT_S16, 2); - success = encoder_open(encoder, &audio_format, NULL); + AudioFormat audio_format(44100, SampleFormat::S16, 2); + success = encoder_open(encoder, audio_format, NULL); assert(success); encoder_to_stdout(*encoder); |