• 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: Pointer to effect in Audio Units Carbon View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pointer to effect in Audio Units Carbon View


  • Subject: Re: Pointer to effect in Audio Units Carbon View
  • From: William Stewart <email@hidden>
  • Date: Wed, 26 Jul 2006 16:07:44 -0700

Also...

mEditAudioUnit is actually of the type ComponentInstance (which AudioUnit is typedef'd too). Any calls made to that object have to go through the component API - it isn't the "this" pointer.

If you need to pass data between your AU and view, have a look at the FilterDemo example in /Developer/Examples/CoreAudio

Bill

On 26/07/2006, at 2:58 PM, Shaun Wexler wrote:

On Jul 26, 2006, at 2:41 PM, Coolidge Corner wrote:

Hi. I'm new to Audio Units, am not sure if this is the right place for this, but I was hoping for some help on something.

Starting with the Audio Unit with Carbon View Template,
Say my effect class Foo inherits from AUEffectBase
Say my view class FooView inherits from AUCarbonViewBase

In FooView shouldn't I be able to call a function in my effect object with the following:

Foo* effect = (Foo*)(mEditAudioUnit);
effect->myFunction();

or maybe the first line needs to be:
Foo* effect = (Foo*)(&myEditAudioUnit);

Either way, any variables in Foo that myFunction uses are not initialized, it's not pointing to the original effect object. Help?

No. You cannot assume that the Model and the View are in the same process or address space.
--
Shaun Wexler
MacFOH
http://www.macfoh.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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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


References: 
 >Pointer to effect in Audio Units Carbon View (From: Coolidge Corner <email@hidden>)
 >Re: Pointer to effect in Audio Units Carbon View (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Pointer to effect in Audio Units Carbon View
  • Next by Date: for Apple guys: possible plugin name collision?
  • Previous by thread: Re: Pointer to effect in Audio Units Carbon View
  • Next by thread: for Apple guys: possible plugin name collision?
  • Index(es):
    • Date
    • Thread