• 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: Some basic Audio device questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some basic Audio device questions


  • Subject: Re: Some basic Audio device questions
  • From: Jeff Moore <email@hidden>
  • Date: Tue, 11 May 2004 14:20:54 -0700

Apart from a bug in the HAL that causes the list of rate ranges to overlap or otherwise appear out of order for devices whose ranges are complex, I'm unaware of any such problem.

Would you care to elaborate on this? Which devices are causing trouble and what are they saying that is wrong?

On May 11, 2004, at 11:48 AM, Shaun Wexler wrote:

On May 11, 2004, at 9:17 AM, Brad Ford wrote:

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.

Beware that some device drivers still don't report their ranges correctly. Expect to see only a minimum value, which "is" the supported nominal rate. Prior to 10.3, many host app's did not interpret these ranges correctly either.
--
Shaun Wexler
MacFOH
http://www.macfoh.com

--

Jeff Moore
Core Audio
Apple
_______________________________________________
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.


  • Follow-Ups:
    • Re: Some basic Audio device questions
      • From: Shaun Wexler <email@hidden>
References: 
 >Some basic Audio device questions (From: Robert Grant <email@hidden>)
 >Re: Some basic Audio device questions (From: Brad Ford <email@hidden>)
 >Re: Some basic Audio device questions (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Getting the spacial position of speakers?
  • Next by Date: Re: Getting the spacial position of speakers?
  • Previous by thread: Re: Some basic Audio device questions
  • Next by thread: Re: Some basic Audio device questions
  • Index(es):
    • Date
    • Thread