Re: Newbie sound input help (or, why _can't_ you do it in this context?)
Re: Newbie sound input help (or, why _can't_ you do it in this context?)
- Subject: Re: Newbie sound input help (or, why _can't_ you do it in this context?)
- From: "John Haggerty" <email@hidden>
- Date: Wed, 19 Jul 2006 10:59:55 -0700
OK, it turns out I missed a key point: I had set the output sample rate
to be different than the hardware sample rate. Apparently, converting
sample rates in the callback thread is what it
CannotDoInCurrentContext. So now I cache the captured data and set up
an AudioConverter, which seems to be doing more or less what I want,
except that the call to AudioConverterFillComplexBuffer often returns
with the error 1768846202, which I am interpreting as "insz", which
also mystifies me. Any idea what this means? (And, BTW, what is up with
the "sometimes it's an integer, sometimes it's an undocumented
4-character string" error codes?
On 7/18/06, Mark Pauley <email@hidden> wrote:
Hm, double check all of your assumptions. Maybe you are
trying to render to an uninitialized buffer list? Be sure that
all of the values you are passing to the AudioUnitRender make sense.
If
you still can't see anything, then send in a bit of sample code that
shows what's going on and you'll have a better chance of getting a
solution.
_Mark
On Jul 17, 2006, at 10:22 AM, John Haggerty wrote:
kAudioUnitErr_CannotDoInCurrentContext
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden