• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AU Resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: AU Resources (From: Glenn Olander <email@hidden>)

  • Prev by Date: Re: Bug? Clicks while recording audio (In) from MIDI (out)
  • Next by Date: Re: Bug? Clicks while recording audio (In) from MIDI (out)
  • Previous by thread: Re: AU Resources
  • Next by thread: [Fwd: AU resources]
  • Index(es):
    • Date
    • Thread