mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Small fixes in tools/audioconverter
This commit is contained in:
committed by
David Reid
parent
7dbb9f5e1a
commit
970c3801d9
@@ -172,8 +172,6 @@ int main(int argc, char** argv)
|
|||||||
int iarg;
|
int iarg;
|
||||||
const char* pOutputFilePath;
|
const char* pOutputFilePath;
|
||||||
|
|
||||||
print_usage();
|
|
||||||
|
|
||||||
/* Print help if requested. */
|
/* Print help if requested. */
|
||||||
if (argc == 2) {
|
if (argc == 2) {
|
||||||
if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {
|
if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {
|
||||||
@@ -236,19 +234,19 @@ int main(int argc, char** argv)
|
|||||||
result = ma_decoder_init_file(argv[1], &decoderConfig, &decoder);
|
result = ma_decoder_init_file(argv[1], &decoderConfig, &decoder);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
printf("Failed to open input file. Check the file exists and the format is supported. Supported input formats:\n");
|
printf("Failed to open input file. Check the file exists and the format is supported. Supported input formats:\n");
|
||||||
#if defined(dr_opus_h)
|
#if defined(ma_dr_opus_h)
|
||||||
printf(" Opus\n");
|
printf(" Opus\n");
|
||||||
#endif
|
#endif
|
||||||
#if defined(dr_mp3_h)
|
#if defined(ma_dr_mp3_h)
|
||||||
printf(" MP3\n");
|
printf(" MP3\n");
|
||||||
#endif
|
#endif
|
||||||
#if defined(dr_flac_h)
|
#if defined(ma_dr_flac_h)
|
||||||
printf(" FLAC\n");
|
printf(" FLAC\n");
|
||||||
#endif
|
#endif
|
||||||
#if defined(STB_VORBIS_INCLUDE_STB_VORBIS_H)
|
#if defined(STB_VORBIS_INCLUDE_STB_VORBIS_H)
|
||||||
printf(" Vorbis\n");
|
printf(" Vorbis\n");
|
||||||
#endif
|
#endif
|
||||||
#if defined(dr_wav_h)
|
#if defined(ma_dr_wav_h)
|
||||||
printf(" WAV\n");
|
printf(" WAV\n");
|
||||||
#endif
|
#endif
|
||||||
return (int)result;
|
return (int)result;
|
||||||
|
|||||||
Reference in New Issue
Block a user