• 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: Sample Rate Support and Core Audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sample Rate Support and Core Audio


  • Subject: Re: Sample Rate Support and Core Audio
  • From: Jeff Moore <email@hidden>
  • Date: Mon, 22 Apr 2002 13:02:54 -0700

on 4/22/02 11:53 AM, Jeremy@Verizon <email@hidden> wrote:

> What is the recommended way to inquire about sample rates that an audio
> device supports?
>
> I've been using
>
> err = AudioDeviceGetPropertyInfo(theID , 0, true,
> kAudioDevicePropertyStreamFormats, &outputSize, &isWriteable);
> if (err == noErr)
> {
> AudioStreamBasicDescription * asbdp = nil;
> asbdp = (AudioStreamBasicDescription *) NewPtr(outputSize);
> if (asbdp)
> {
> err = AudioDeviceGetProperty(theID , 0 , //master Channel
> true, kAudioDevicePropertyStreamFormats, &outputSize,
> asbdp);
>
> But at least on the MIDIMan 2496 card I am testing I cannot get it to report
> 96k. Any suggestions?

That code looks fine to me. If you aren't seeing a stream description with a
96K rate, one of two things is happening:

1) The device may support a range of rates which would be reported as
kAudioStreamAnyRate.

2) The driver isn't reporting the sample rate to the HAL.

I don't have a 2496 on hand to look at, but I've seen other cards report 96K
correctly.

--

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.

References: 
 >Sample Rate Support and Core Audio (From: "Jeremy@Verizon" <email@hidden>)

  • Prev by Date: Sample Rate Support and Core Audio
  • Next by Date: Documentation suggestion
  • Previous by thread: Sample Rate Support and Core Audio
  • Next by thread: Lock-free protocols?
  • Index(es):
    • Date
    • Thread