Re: audiounit instrument with cocoa view (ben kamen)
Re: audiounit instrument with cocoa view (ben kamen)
- Subject: Re: audiounit instrument with cocoa view (ben kamen)
- From: Stephen Blinkhorn <email@hidden>
- Date: Sun, 19 Jun 2011 13:42:24 -0600
On 19 Jun 2011, at 11:44, herve.noury wrote:
I've got the same problems than Ben.
I tried to do an equivalent of all classes encountered in
"FilterDemo" example or "Sonogram View Demo" in a
AudioUnitIntrumentBase.
If it's any consolation this is how we started with Cocoa views too so
it will work!
When I imported the header of the cpp synth in the NSView folder,
some cpp classes as <vector> where not found by the compiler. So I
transformed the .m of the NSView to a .mm folder to integrate C++ to
Cocoa.
Out of interest why does the header of the cpp synth need to be added
to the NSView folder? I use a few .mm classes myself but only when I
need to use the same classes in C++ and Objective-C. In this case I
put an Objective-C wrapper around the C++ classes. If I need to share
constants or an enum between C++ and Obj-C I just use a separate
header and add it to both targets.
Stephen
Then the copy of the enum declaration (this where you declare the
parameters for the constructor) was not accepted in the NSView .h
folder : normal, this a dual declaration of the same values. But if
I do not declare the parameters, only the default view appears in
AULab or GaragaBand, and never the Cocoa view.
I spent the week to try to find a solution without success!!
Does the Stephan Bernsee solution works with XCode4?? I am afraid to
change like this the native folders of XCode!!
_______________________________________________
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
_______________________________________________
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