Re: Communicating between an audiounit and cocoa view?
Re: Communicating between an audiounit and cocoa view?
- Subject: Re: Communicating between an audiounit and cocoa view?
- From: "Mark's Studio" <email@hidden>
- Date: Fri, 23 Jan 2004 19:34:12 +0100
In the SampleEffectUnit.h
#import "SampleEffectCocoaUI.h"
SampleEffectCocoaUI *cocoaController;
In the SampleEffectUnit.mm (I changed it to .mm)
SampleEffectUnit::SampleEffectUnit(AudioUnit
component):MusicDeviceBase(component,0,1,0){
cocoaController = [[SampleEffectCocoaUI alloc] init];
}
That's what i do to get a pointer to the cocoa instance.
On 23/1-2004, at 18:21, Andrew McClure wrote:
>
Hi. I am doing an audiounit plugin based on the SampleAU effect sample
>
code
>
that comes with the panther dev tools. However, I have a slight
>
problem. I
>
need for the cocoa view and the audiounit to share a buffer, and other
>
than
>
parameters there does not seem to be any way to communicate between the
>
cocoa view and the audiounit.
>
>
I was wondering if there was any way to somehow get a pointer to the
>
view
>
object from the audiounit or vice versa. I notice that both the
>
audiounit
>
and the view have an AudioUnit type variable (this is apparently the
>
same
>
thing as whatever a "ComponentInstance" is?) and it is looking like I
>
somehow just need to pass the pointer through the intermediary of the
>
Component Manager. Is there any easier way, and is there some specific
>
thing
>
I should be looking at to figure out how to do this? I have never used
>
the
>
component manager before.
>
>
Should I just start drudging through the component Inside Macintosh? :)
>
_______________________________________________
>
coreaudio-api mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
>
Do not post admin requests to the list. They will be ignored.
>
>
Peter Mark
Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.