Re: AudioUnit RenderCallback Scope Issues
Re: AudioUnit RenderCallback Scope Issues
- Subject: Re: AudioUnit RenderCallback Scope Issues
- From: Peter Rebholz <email@hidden>
- Date: Tue, 12 Aug 2008 16:54:32 -0500
On Aug 12, 2008, at 4:20 PM, Daniel Elliott wrote: yeah i did actually try that. So do you cast the inRefCon to be of 'myObject' type?
so (myObject)inRefCon myfunction/variable;
You aren't casting to a pointer of a your class, you're casting from a pointer to a type. So, if you class is called AUGraphObject, you need to cast as AUGraphObject *. The following modification (in red) should make your code work:
memcpy (ioData->mBuffers[0].mData,[(AUGraphObject *)inRefCon returnBuffer], sizeof(whatevermy data size is);
Brian's email (sent right after your last email) explains this as well. |
_______________________________________________
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