Re: AU Resources
Re: AU Resources
- Subject: Re: AU Resources
- From: Urs Heckmann <email@hidden>
- Date: Wed, 12 Feb 2003 11:58:52 +0100
Am Mittwoch, 12.02.03, um 05:49 Uhr (Europe/Berlin) schrieb Glenn
Olander:
Well, I answered my own question about resources in AU's.
I now know (just a little :-)) about bundle resource maps.
- Glenn
Glenn,
unlike VST, the resource path is not automatically set to your plugin
when anything happens inside of it.
Before dealing with your Bundle's resources you have to explicitly set
the path.
Look into the image loading function of CAUGui in CAUGuiTools.cpp
(though it's only about loading png files, not setting the resource
path...)
Here's a quote from an old post by Art:
o In Project Builder, give your bundle an identifier. Go to
Targets->Info.plists Entries->Expert View and enter something sensible
in the CFBundleIdentifier element (e.g.
com.mycompany.category.effect_name)
o Once you've done this, you can get your BundleRef simply:
BundleRef bundleRef =
CFBundleGetBundleWithIdentifier(CFSTR("com.bitshiftaudio.Effects.Filter
"
));
Then you can use CFBundleOpenBundleResource(bundleRef) to set your
resource file to be the current resource.
This is vastly preferable to hard-coding a file URL since I don't think
there's anything to keep end-users from renaming the component bundles.
Cheers,
;) Urs
_______________________________________________
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.