• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AudioUnit RenderCallback Scope Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioUnit RenderCallback Scope Issues


  • Subject: Re: AudioUnit RenderCallback Scope Issues
  • From: Daniel Elliott <email@hidden>
  • Date: Tue, 12 Aug 2008 22:16:03 +0000 (GMT)

Peter, Brian thank you so much. It's building fine now. Now to get some Audio data into it! wish me luck!

I thought I had tried that but I wasn't using it in the right way and got something wrong.

Dan

----- Original Message ----
From: Peter Rebholz <email@hidden>
To: Daniel Elliott <email@hidden>
Cc: CoreAudio API <email@hidden>
Sent: Tuesday, 12 August, 2008 10:54:32 PM
Subject: Re: AudioUnit RenderCallback Scope Issues


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.

Send instant messages to your online friends http://uk.messenger.yahoo.com
 _______________________________________________
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

  • Prev by Date: Re: AudioUnit RenderCallback Scope Issues
  • Next by Date: AudioDeviceRead failure
  • Previous by thread: Re: AudioUnit RenderCallback Scope Issues
  • Next by thread: AudioDeviceRead failure
  • Index(es):
    • Date
    • Thread