diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2012-03-03 23:14:12 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2012-03-03 23:17:15 +1100 |
commit | d6b77d2db7e3f83a8db1473a22cfd560f51894a1 (patch) | |
tree | ca3231a0fe0890045e6d5bedb98a480d18d9f7b8 /programs | |
parent | 247865f4e29f190c7984e3ff502fc6844c46df6a (diff) |
programs/sndfile-convert.c : Add support for alac codec.
Diffstat (limited to 'programs')
-rw-r--r-- | programs/sndfile-convert.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/programs/sndfile-convert.c b/programs/sndfile-convert.c index 887508b..fed667c 100644 --- a/programs/sndfile-convert.c +++ b/programs/sndfile-convert.c @@ -68,6 +68,10 @@ usage_exit (const char *progname) puts ( " -ulaw : force the output ULAW\n" " -alaw : force the output ALAW\n" + " -alac16 : force the output 16 bit ALAC (CAF only)\n" + " -alac20 : force the output 20 bit ALAC (CAF only)\n" + " -alac24 : force the output 24 bit ALAC (CAF only)\n" + " -alac32 : force the output 32 bit ALAC (CAF only)\n" " -ima-adpcm : force the output to IMA ADPCM (WAV only)\n" " -ms-adpcm : force the output to MS ADPCM (WAV only)\n" " -gsm610 : force the GSM6.10 (WAV only)\n" @@ -157,6 +161,22 @@ main (int argc, char * argv []) { outfileminor = SF_FORMAT_ALAW ; continue ; } ; + if (! strcmp (argv [k], "-alac16")) + { outfileminor = SF_FORMAT_ALAC_16 ; + continue ; + } ; + if (! strcmp (argv [k], "-alac20")) + { outfileminor = SF_FORMAT_ALAC_20 ; + continue ; + } ; + if (! strcmp (argv [k], "-alac24")) + { outfileminor = SF_FORMAT_ALAC_24 ; + continue ; + } ; + if (! strcmp (argv [k], "-alac32")) + { outfileminor = SF_FORMAT_ALAC_32 ; + continue ; + } ; if (! strcmp (argv [k], "-ima-adpcm")) { outfileminor = SF_FORMAT_IMA_ADPCM ; continue ; |