• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: kAudioFormatProperty_AvailableEncode (SampleRates)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >kAudioFormatProperty_AvailableEncodeFormats (From: Craig Bakalian <email@hidden>)
 >Re: kAudioFormatProperty_AvailableEncodeFormats (From: Brad Ford <email@hidden>)

  • Prev by Date: Re: AudioUnit sidechain
  • Next by Date: AudioConverter and IMA
  • Previous by thread: Re: kAudioFormatProperty_AvailableEncodeFormats
  • Next by thread: AudioConverter and IMA
  • Index(es):
    • Date
    • Thread