Re: audiounit instrument with cocoa view
Re: audiounit instrument with cocoa view
- Subject: Re: audiounit instrument with cocoa view
- From: Stephen Blinkhorn <email@hidden>
- Date: Sun, 19 Jun 2011 12:29:43 -0600
On 18 Jun 2011, at 17:09, ben kamen wrote:
ok, so it seems like my problem is actually in getting it to load
the bundle in the first place. what am i missing?
Are you copying the view bundle into the main plugin bundle? In the
'Targets' section in the original cocoa templates you should see a
'Copy Files' build phase inside your main plugin bundle. To add this
to your project use the cog/wheel drop down menu and then:
Add >> New Build Phase >> New Copy Files Build Phase
Make sure the destination is set to 'Resources' and then drag and drop
your CocoaView.bundle (from 'Products') into this build phase.
Hope that helps,
Stephen
the bundle identifier in the plist is set to : com.olympia-noise-
co.RO_CocoaViewFactory
and in the main cpp file i have this, which prints the "bundle
didn't load" error :
OSStatus Rainbow_Oscillator::GetProperty( AudioUnitPropertyID inID,
AudioUnitScope inScope,
AudioUnitElement inElement,
void *
outData )
{
if (inScope == kAudioUnitScope_Global)
{
switch (inID)
{
case kAudioUnitProperty_CocoaUI:
{
// Look for a resource in the main bundle by name and type.
CFBundleRef bundle =
CFBundleGetBundleWithIdentifier( CFSTR("com.olympia-noise-
co.RO_CocoaViewFactory") );
if (bundle == NULL) {
printf("bundle didn't load");
return fnfErr;
}
_______________________________________________
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