Re: Some basic Audio device questions
Re: Some basic Audio device questions
- Subject: Re: Some basic Audio device questions
- From: Brad Ford <email@hidden>
- Date: Tue, 11 May 2004 09:17:29 -0700
On May 11, 2004, at 7:56 AM, Robert Grant wrote:
I'm using the wonderful MTCoreAudio framework to access the properties
of the various audio devices connected to my computer and I've got
some questions about how to interpret the responses.
When I list the nominalSampleRates I get an array of arrays where each
subarray lists the low and high of a range of sample rates. What's the
best way to turn that into into a menu of available sample rates?
Well, you want your user to pick a particular sample rate, not a range,
so you probably want to start with a static array of all the sample
rates you'd like to populate the menu with, then filter out the ones
that are disallowed by the ranges returned in nominal sample rates.
For extra credit, you could provide a text input field where the user
could type in an arbitrary sample rate, which you would validate
against the valid nominal sample rate ranges.
-Brad Ford
QuickTime Engineering
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.