Re: CFM tricks
Re: CFM tricks
- Subject: Re: CFM tricks
- From: Christopher Corbell <email@hidden>
- Date: Thu, 30 Jan 2003 20:17:15 -0800
I can't say I've done this with audio frameworks, but I had a similar
problem with IOKit, IOUSBLib and pthread stuff for a project.
The solution was to develop an intermediate CFBundle with a pared-down
API and opaque types. The CFM app includes the intermediate bundle
privately in its app bundle and looks up its functions, rather than
external
framework functions.
So the scheme is:
MyApp (CFM Carbon app built with CodeWarrior)
---> MyBundle (CFBundle built with ProjectBuilder)
----> *.framework(s)
While it's a little more work it gives you the nice side-effect of a
portable, encapsulated
bundle that you can easily integrate with other apps.
Regards,
- Chris
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.
_______________________________________________
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.
_______________________________________________
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>) |