Re: Acquiring input Data
Re: Acquiring input Data
- Subject: Re: Acquiring input Data
- From: Heath Raftery <email@hidden>
- Date: Fri, 17 Jun 2005 08:19:26 +1000
Hi Paul,
On 17/06/2005, at 3:30 AM, Paul Barbot wrote:
I want to acquire data from input using the HAL and CoreAudio.
Been there and done that recently, so hopefully I may be able to help.
I followed the technote TN2091 (http://developer.apple.com/
technotes/tn2002/
tn2091.html#top) but I all I have is an error -50 from the
AudioUnitRender. I have read on
this mailing list that its because there is a wrong parameter,
I got lots of -50's to start with, which the debugger reported as
"bad parameter". It was not always clear which parameter it was, but
it did always seem to be a problem with the way I was calling the
function.
often the TimeStample
but not necessarily so!
but because the AURender call is inside the Callback I cannot
change it
(it is a const parameter).
Is it because I call the function in the bad order ?
here is an extract of my main function :
<SNIP>
Your main function looks fine to me. Can you show us your input
callback, where AURender is called? My guess is that the
AudioBufferList you are providing to the Render call is not right. I
believe it needs to be ready to accept data of the type specified by
your InputUnit.
Heath
_______________________________________________
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