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: Doug Wyatt <email@hidden>
- Date: Wed, 19 Jul 2006 11:10:27 -0700
On Jul 19, 2006, at 10:59 , John Haggerty wrote:
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?
From AudioConverter.h:
kAudioConverterErr_InvalidInputSize = 'insz',
Your input callback function is returning an invalid combination of
byte size in the AudioBufferList and packet count.
Doug
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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