Re: adding Cocoa UI to SampleEffectUnit
Re: adding Cocoa UI to SampleEffectUnit
- Subject: Re: adding Cocoa UI to SampleEffectUnit
- From: William Stewart <email@hidden>
- Date: Fri, 11 Mar 2005 16:51:13 -0800
Yes
AUHosting only looks for Carbon Views... With Tiger, we're shipping
an app "AU Lab" that will do both and a lot more... in the meantime
there's the cocoa AU host that looks for cocoa views and that should
work just fine
Bill
On 11/03/2005, at 1:36 PM, Michael Hanna wrote:
Thanks for the response. I've moved on and created a new AU by
Audio_Unit_Effect_with_Cocoa_View template much like the
instructions at http://developer.apple.com/audio/audiounits.html
I opened the CocoaView.nib in IB, and I added my own UI elements. I
compiled straight-away without changing any code other than the
bundle ID for both the CocoaUI target and the 'UniTapDelay' target,
changing the bundle ID in GetProperty() and creating unique ids for
UniTapDelay_COMP_SUBTYPE and UniTapDelay_COMP_MANF. Oh yes, I also
turn ZeroLink off(blush). When I compile these files:
UniTapDelay.rsrc
CocoaViewFactory.bundle
CocoaView.nib
English.lproj
appear in the Contents/Resources dir of the .component package.
However, when I view it with AudioUnitHosting, the Cocoa UI doesn't
appear.. only the default view that contains a single parameter
slider that looks like it was constructed dynamically by the AU
host. Any ideas why?
Michael
On 11-Mar-05, at 1:10 PM, Michael Hopkins wrote:
Michael,
You are correct that the bundle identifier is
"com.acme.audiounit.passthrough". You need to change the string to
match the ID that you set in XCode. It is the Identifier property
of your bundle target. To see this, edit the active target of your
bundle in XCode (from the project menu) and go to the Info.plist
section of the editor.
-Michael
On Mar 11, 2005, at 7:09 AM, Michael Hanna wrote:
I've taken the steps in the /Developer/Examples/CoreAudio/
AudioUnits/SampleAUs/README.rtf to add the Cocoa UI to the Audio
Unit, however, one line trips me up:
[...]
Then, your AU will have a Cocoa UI! (Bundle Identifier of course
has to be changed to match your ID)
what does this mean, my Bundle Identifier has to be changed to
match my ID
I'm assuming that com.acme.audiounit.passthrough is my bundle
identifier:
CFBundleRef bundle = CFBundleGetBundleWithIdentifier( CFSTR
("com.acme.audiounit.passthrough") );
where does the 'ID' get changed?
regards,
Michael _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
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
--
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