Commit c4122feb authored by David Reid's avatar David Reid

Print result when failing to open the encoder in audioconverter.

parent 84f6b163
...@@ -305,7 +305,7 @@ int main(int argc, char** argv) ...@@ -305,7 +305,7 @@ int main(int argc, char** argv)
result = ma_encoder_init_file(pOutputFilePath, &encoderConfig, &encoder); result = ma_encoder_init_file(pOutputFilePath, &encoderConfig, &encoder);
if (result != MA_SUCCESS) { if (result != MA_SUCCESS) {
ma_decoder_uninit(&decoder); ma_decoder_uninit(&decoder);
printf("Failed to open output file. Check that the directory exists and that the file is not already opened by another process."); printf("Failed to open output file. Check that the directory exists and that the file is not already opened by another process. %s", ma_result_description(result));
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment