Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
- Subject: Re: Newbie problems Cocoa, objective-C using CoreAudio C libraries
- From: Peter Rebholz <email@hidden>
- Date: Thu, 23 Oct 2008 18:29:02 -0500
On Oct 23, 2008, at 5:31 PM, Craig Lewiston wrote:
It looks like the problem is due to pAqData being an invalid object.
I was able to isolate the error by calling
AudioFileID testaudiofile = [pAqData mAudioFile];
right after declaring pAqData:
AQRecorderState *pAqData = (AQRecorderState *) aqData;
which returned the same error from before.
So, it's clear to me that I have a problem linking the incoming aqData
pointer to pAqData. Could someone help me understand what is
happening in that line of code? Here is the full header again to the
callback function and the first line of its code:
You are passing an instance of your queue state object as the
inUserData parameter when you register your callback, correct?
Are you sure you haven't accidentally released your object somewhere
else? Passing the object as the user data parameter won't retain it so
if you created it, setup the callback then released it your object
would have been deallocated.
_______________________________________________
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