Re: kAudioFormatProperty_AvailableEncodeFormats
Re: kAudioFormatProperty_AvailableEncodeFormats
- Subject: Re: kAudioFormatProperty_AvailableEncodeFormats
- From: Brad Ford <email@hidden>
- Date: Wed, 18 May 2005 09:43:52 -0700
On May 18, 2005, at 2:33 AM, Craig Bakalian wrote:
Hi,
I am trying to get the range of formats for an audio format via
kAudioFormatProperty_AvailableEncodeFormats.
kAudioFormatProperty_AvailableEncodeFormats - there's no such
property. Do you mean kAudioFormatProperty_EncodeFormatIDs?
Is the below code correct? What does it mean when it returns a
AudioValueRange of {0,0}.
AudioValueRange formatRange;
UInt32 size = sizeof(AudioValueRange);
AudioFormatGetProperty(kAudioFormatProperty_AvailableEncodeSamples,
sizeof(UInt32),
&formatID,
&size,
&formatRange);
kAudioFormatProperty_AvailableEncodeSamples - no such property.
If you mean kAudioFormatProperty_AvailableEncodeSampleRates, then a
single range of {0,0} means that any sample rate is ok for the format
in question. For instance, 'lpcm' doesn't care about sample rate.
You can encode to any sample rate you want. Other encoders (like
'aac ' for instance) are a lot more picky about the sample rate
ranges to which you can encode. All the old Sound Compressor formats
(such as 'QDM2' and 'Qclp') restrict you to sample rates below 65 kHz.
-Brad Ford
QuickTime Engineering
_______________________________________________
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