Print result when failing to open the encoder in audioconverter.

This commit is contained in:
David Reid
2020-07-07 18:38:19 +10:00
parent 84f6b16344
commit c4122feb8d
+1 -1
View File
@@ -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;
} }