• 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: ChannelMap and SampleRate change weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ChannelMap and SampleRate change weirdness


  • Subject: Re: ChannelMap and SampleRate change weirdness
  • From: Aaron Eppolito <email@hidden>
  • Date: Thu, 17 Jun 2004 15:03:32 -0700

On Jun 17, 2004, at 12:40 PM, Robert Grant wrote:

After changing the sample rate from 44.1 to something else (and reinitializing everything) AudioUnitRender tells me -10863 CannotDoInCurrentContext.

What steps would you take to change the SampleRate of a device when using AUHAL?

I stop and tear down the old AUHAL. Set the sample rate on the device. Build a new AUHAL and start it - where upon I get the -10863 error. I don't see where the mismatch could come in?

The AUHAL defaults to 44.1kHz regardless of the device it wraps. This means that the AUHAL initializes to a non-functional state for non-44.1kHz devices until you explicitly set the AUHAL's sample rate (via ASBD on the input scope of the input bus). See code listing 4 in the tech note.

-Aaron
_______________________________________________
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: 
 >ChannelMap and SampleRate change weirdness (From: Robert Grant <email@hidden>)
 >Re: ChannelMap and SampleRate change weirdness (From: Doug Wyatt <email@hidden>)
 >Re: ChannelMap and SampleRate change weirdness (From: Robert Grant <email@hidden>)

  • Prev by Date: kAUPresetExternalFileRefs string representations
  • Next by Date: validate StreamFormat
  • Previous by thread: Re: ChannelMap and SampleRate change weirdness
  • Next by thread: Re: ChannelMap and SampleRate change weirdness
  • Index(es):
    • Date
    • Thread