Re: ChannelMap and SampleRate change weirdness
Re: ChannelMap and SampleRate change weirdness
- Subject: Re: ChannelMap and SampleRate change weirdness
- From: Doug Wyatt <email@hidden>
- Date: Thu, 17 Jun 2004 11:37:13 -0700
Robert,
On Jun 17, 2004, at 6:15, Robert Grant wrote:
Something bizarre is going on in Rax.
No matter how many channels I ask for when configuring my input AUHAL
AudioUnitRender tells me that it has just two channels (this used to
work before I'm sure of it.??? !!!)
How many channels does the device have?
Are you speaking of the number of buffers in the buffer list returned
by AudioUnitRender?
What are the input and output stream descriptions for bus 1?
After changing the sample rate from 44.1 to something else (and
reinitializing everything) AudioUnitRender tells me -10863
CannotDoInCurrentContext.
What are the possible reasons an AUHAL would return this error? The
only thing I can think of is that it is being asked to do a sample
rate conversion - but I've set the device to be the new sample rate
before initializing the AUHAL Or perhaps it thinks it's being called
from the wrong thread? But it's on the main graph render thread.
It has to be getting called on the device's IOProc thread for the exact
same number of samples that were supplied by the IOProc. If element 1's
input and output sample rates do not match, you will get a sample rate
conversion and this will result in the -10863 error.
Doug
_______________________________________________
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.