Re: CFM tricks
Re: CFM tricks
- Subject: Re: CFM tricks
- From: email@hidden (Patrick Beard)
- Date: Thu, 30 Jan 2003 22:04:45 -0800
On Thursday, January 30, 2003, at 04:46 PM, John Stiles wrote:
I've been working on assembling a little CFM app which uses CoreAudio
for the last few days. (We are developing an app which requires OS 9
support, but we'd really like to leverage CoreAudio on OS X. For a
variety of reasons, shipping two versions of the same app--even
bundled into one package--is not an option for us.)
Anyway, I've tried using CFBundleGetBundleWithIdentifier and
CFBundleGetFunctionPointerForName to import all the symbols needed by
our app, but I'm getting mixed results. When I import from
"com.apple.audio.CoreAudio", everything works great. But calling
CFBundleGetBundleWithIdentifier with "com.apple.audio.units.AudioUnit"
or "com.apple.audio.toolbox.AudioToolbox" returns NULL, even though
that's what's in the CFBundleIdentifier tag of those Frameworks'
Info.plist.
Does anyone know what's going on here, or how I could work around
this? Any assistance would be appreciated.
If I recall correctly, you only want to use
CFBundleGetBundleWithIdentifier for already loaded bundles, for example
a plugin bundle that needs to get a reference to itself, not knowing
where it was loaded from. You want to simply open the CoreAudio and
AudioToolbox framework bundles with absolute URLs using
CFBundleCreate().
- Patrick
_______________________________________________
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: | |
| >CFM tricks (From: John Stiles <email@hidden>) |