• 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: Setting Sample Rates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Sample Rates


  • Subject: Re: Setting Sample Rates
  • From: Jeff Moore <email@hidden>
  • Date: Mon, 14 Jan 2002 17:03:32 -0800

on 1/14/02 4:33 PM, Douglas Wright <email@hidden> wrote:

> Jimmy D said:
>> If a device has two input streams each with two
>> channels - would this likely be four channels of simultaneous input or
> would
>> each stream likely represent different sets of input (analog vs. digital
> for
>> example)? If the answer is either - how am I supposed to tell the
>> difference?
>
> Exactly, that's why we need a name property for the streams.

I would argue that a name property is pretty useless except for display
purposes. You end up having to guess based on some arbitrary text that may
or may not have the information you are looking for in it. What if the names
are all in Japanese, but you searching for some English text? What if the
text is misspelled or missing?

IMHO, this is not a very robust solution to the problem of figuring out what
kind of jack you're dealing with.

What you really want is some information about the category and transport
types of the stream as enumerated constants. This makes things a bit more
predictable.

This topic was brought up a couple of weeks ago (check the archives). The
fact is that a most devices don't give you any of this information anyway.
Not a single USB device I've checked conforms to the standard regarding this
information. So, you'll always need a back up plan in your app to cope even
if this information is published via the HAL.

--

Jeff Moore
Core Audio
Apple


  • Follow-Ups:
    • Re: Setting Sample Rates
      • From: "Douglas Wright" <email@hidden>
References: 
 >Re: Setting Sample Rates (From: "Douglas Wright" <email@hidden>)

  • Prev by Date: Re: Setting Sample Rates
  • Next by Date: Re: kAudioUnitID_BandPassFilter
  • Previous by thread: Re: Setting Sample Rates
  • Next by thread: Re: Setting Sample Rates
  • Index(es):
    • Date
    • Thread