Re: Possible to package an AU with an app?
Re: Possible to package an AU with an app?
- Subject: Re: Possible to package an AU with an app?
- From: kelly jacklin <email@hidden>
- Date: Fri, 12 Sep 2003 08:47:07 -0700
Well, if there are no components in the file/bundle you point
RegisterComponentFileRef at, then it successfully registered all the
components in that file/bundle, right? I think the idea is that it's
up to you to ensure that the file/bundle is actually a valid component
file. I believe the call will error out if there is a problem
registering any components it finds, but I have never tried forcing
registration failure to find out...
kelly
On Friday, September 12, 2003, at 07:53 AM, Marc Poirier wrote:
Just package the AU as a bundle, plop it in your application bundle in
the Resources directory, and then when your app launches, find the AU
bundle (using CFBundle APIs), and load it using
RegisterComponentFileRef. Works like a charm for me.
Have you found that RegisterComponentFileRef returns noErr no matter
what?
I'm finding that in my experience. I mean, I tried registering
completely
ridiculous stuff, like FSRefs to audio files and zip files and stuff
like
that, and every time RegisterComponentFileRef says, "noErr, everything
is
a-okay honkey dorey." And I'm thinking, "Pffft, yeah whatever..." But
it's a little concerning that there's no way to error check, then how
can
you rely on RegisterComponentFileRef?
Marc
_______________________________________________
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.