Re: ChannelMap and SampleRate change weirdness
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.