• 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: 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.


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

  • Prev by Date: Some basic Audio device questions
  • Next by Date: Re: cocoa ui
  • Previous by thread: Some basic Audio device questions
  • Next by thread: Re: Some basic Audio device questions
  • Index(es):
    • Date
    • Thread