mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
programs/sndfile-convert.c : Add support for alac codec.
This commit is contained in:
parent
247865f4e2
commit
d6b77d2db7
@ -11,6 +11,9 @@
|
||||
src/sndfile.c
|
||||
Hook new ALAC codec in.
|
||||
|
||||
* programs/sndfile-convert.c
|
||||
Add support for alac codec.
|
||||
|
||||
2012-02-02 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/aiff.c src/wav.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 ;
|
||||
|
Loading…
Reference in New Issue
Block a user