Re: getting supported sample rates for device with "lazy kAudioDevicePropertyAvailableNominalSampleRates"
Re: getting supported sample rates for device with "lazy kAudioDevicePropertyAvailableNominalSampleRates"
- Subject: Re: getting supported sample rates for device with "lazy kAudioDevicePropertyAvailableNominalSampleRates"
- From: Dave Fernandes <email@hidden>
- Date: Fri, 07 Sep 2012 14:17:45 -0400
See http://lists.apple.com/archives/coreaudio-api/2007/Oct/msg00052.html
I'm not sure whether the HALLab sample code is still available. But, yes, I believe AMS is just giving a bunch of standard rates that fit within the actual range (or at least that is what the sample code did back in Tiger). I believe you should also be using Physical Formats if you want to manipulate the actual sample rate.
Dave
On 2012-09-07, at 1:46 PM, "René J.V. Bertin" <email@hidden> wrote:
> I have a USB output device that is a bit lazy in replying to the kAudioDevicePropertyAvailableNominalSampleRates query: it returns a single AudioValueRange, containing the min and max supported ranges. However, when I check via A.S.M, I see the following supported rates:
>
> 6400 8000 11025 12000 16000 22050 24000 32000 44100 48000
>
> The question is, how are these values obtained? I see no other query that, for instance, allows to check if a rate is supported, so how does A.S.M. do the trick? Does it use an internal array of values supported by CoreAudio and/or the HAL to show the rates that fall within the limits given by the device? (In that case, can I assume that the device would accept, say, 14920 or 17890 Hz?)
>
> Thanks in advance,
> René
> _______________________________________________
> 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
_______________________________________________
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