Re: File formats and codecs usable with ExtAudioFile API
Re: File formats and codecs usable with ExtAudioFile API
- Subject: Re: File formats and codecs usable with ExtAudioFile API
- From: William Stewart <email@hidden>
- Date: Tue, 29 Nov 2005 11:49:43 -0800
On 29/11/2005, at 12:08 AM, Martin Wilz wrote:
Hi William,
ExtAudioFile works with any format that is appropriate/legal for a
supported file type.
That was more or less the question: How do I programatically identify
the legal/supported
file types ?
There are some global AudioFile properties in AudioFile.h that
provide the list of acceptable data formats for a given file format
afconvert works just fine for instance.... (which is the follow on to
ConvertFile). It wouldn't be too hard to enhance the ConvertFile
example to correctly write linear pcm (exercise for the reader)
I'll take a look at afconvert.
Its does all of this - though the code takes a little digging around
in. To see it in all its glory (in Terminal):
% afconvert
Usage:
afconvert [option...] input_file [output_file]
Options: (may appear before or after arguments)
{ -f | --file } file_format:
'adts' = AAC ADTS (.aac, .adts)
data_formats: 'aac '
'ac-3' = AC3 (.ac3)
data_formats: 'ac-3'
'AIFC' = AIFC (.aif, .aiff, .aifc)
data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
BEF64 'ulaw' 'alaw' 'MAC3' 'MAC6'
'ima4'
'QDMC' 'QDM2' 'Qclp' 'agsm'
'AIFF' = AIFF (.aif, .aiff)
data_formats: BEI8 BEI16 BEI24 BEI32
'caff' = Apple CAF File (.caf)
data_formats: '.mp3' 'MAC3' 'MAC6' 'QDM2' 'QDMC'
'Qclp' 'Qclq' 'aac ' 'agsm' 'alac'
'alaw'
'drms' 'dvca' 'dvi ' 'ima4' 'lpc '
BEI8
BEI16 BEI24 BEI32 BEF32 BEF64 LEI16
LEI24 LEI32 LEF32 LEF64 'ms\x00
\x02' 'ms\x00\x11'
'ms\x001' 'ms\x00U' 'samr' 'ulaw'
'vdva'
'MPG3' = MPEG Layer 3 (.mpeg, .mp3)
data_formats: '.mp3'
'mp4f' = MPEG4 Audio (.mp4)
data_formats: 'aac '
'm4af' = MPEG4 Audio (.m4a)
data_formats: 'aac ' 'alac'
'NeXT' = NeXT/Sun (.snd, .au)
data_formats: BEI8 BEI16 BEI24 BEI32 BEF32
BEF64 'ulaw'
'Sd2f' = Sound Designer II (.sd2)
data_formats: BEI8 BEI16 BEI24 BEI32
'WAVE' = WAVE (.wav)
data_formats: LEUI8 LEI16 LEI24 LEI32 LEF32
LEF64 'ulaw' 'alaw'
etc....
Bill
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden