Re: kAudioFormatProperty_AvailableEncode (SampleRates)
Re: kAudioFormatProperty_AvailableEncode (SampleRates)
- Subject: Re: kAudioFormatProperty_AvailableEncode (SampleRates)
- From: Craig Bakalian <email@hidden>
- Date: Wed, 18 May 2005 16:07:43 -0400
Hi Brad,
Why yes, that was a typo in the email, different from my xcode file.
I kinda thought the range of {0,0} meant anything goes. But I must ask
this last question, is it really a anything goes? Could one foolishly
put a sample rate of 1,000,000.00, or even worse, 25,00?
On May 18, 2005, at 12:43 PM, Brad Ford wrote:
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