From de276138079c8d54ba1f4dba9cef8b411c23662c Mon Sep 17 00:00:00 2001 From: casey langen Date: Thu, 30 Jan 2020 21:16:23 -0800 Subject: [PATCH] Minor tweaks. --- src/core_c_demo/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core_c_demo/main.c b/src/core_c_demo/main.c index f26ea7d29..1ed6dac70 100644 --- a/src/core_c_demo/main.c +++ b/src/core_c_demo/main.c @@ -7,6 +7,8 @@ #include #include +#define ENCODER_TYPE ".opus" + #ifdef WIN32 #define INPUT_FILE "c:\\clangen\\in.mp3" #define OUTPUT_FILE "c:\\clangen\\out.opus" @@ -33,7 +35,7 @@ static void test_decode_encode() { printf("test_decode_encode: decoding from %s\n", INPUT_FILE); printf("test_decode_encode: encoding to %s\n", OUTPUT_FILE); mcsdk_decoder decoder = mcsdk_env_open_decoder(in); - mcsdk_encoder encoder = mcsdk_env_open_encoder(".mp3"); + mcsdk_encoder encoder = mcsdk_env_open_encoder(ENCODER_TYPE); if (mcsdk_handle_ok(decoder) && mcsdk_handle_ok(encoder)) { printf("test_decode_encode: encoder and decoder opened successfully. running...\n"); mcsdk_audio_buffer buffer = mcsdk_env_create_audio_buffer(4096, 44100, 2);