Re: Using MIDI CoreAudio with carbon
Re: Using MIDI CoreAudio with carbon
- Subject: Re: Using MIDI CoreAudio with carbon
- From: Stephen Davis <email@hidden>
- Date: Mon, 6 Jan 2003 13:58:56 -0800
Stephane,
Raphael's answer may be more complicated than what you actually need.
Carbon apps can be built with CFM/PEF or DYLD/Mach-O binary formats.
If you build your app as Mach-O, then all you need to do is add the
CoreMIDI.framework to your CodeWarrior project and call its functions
like you would any other API ("#include <CoreMIDI/CoreMIDI.h>" and no
special stuff needed for the callbacks). If you are building for OS X
only then I highly recommend building Mach-O b/c it will just make your
life easier. However, if you are intending this app to run on OS 9 as
well and thus need to build it CFM/PEF then you need to look at the
examples Raphael listed in his response.
Hope that helps...
stephen
On Monday, January 6, 2003, at 08:16 AM, email@hidden wrote:
How can I found all the MIDI coreAudio types and method declarations
for
Carbon ?
The main idea consist of importing and gluing functions that comes
from the CoreMIDI framework.
see the code bundled in your Metrowerks Codewarrior example : "Call
CFM to Mach-O Framework" in the MacOS X examples folder. The example
is rather straight forward, and is *the* supported way to handle this.
you'll have to load from "CoreMIDI.framework" instead of
"carbon.framework" of course.
There is an oddity in the way to handle callback. See my post on
CoreAudio entitled "CoreMIDI wrap from carbon [slightly OT]" since it
contains the code you need to make it work (althought it is ugly, it
*seems* to work smoothly).
Thanks,
Raphael
_______________________________________________
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.