Re: OMS, FreeMIDI and Carbon...
Re: OMS, FreeMIDI and Carbon...
- Subject: Re: OMS, FreeMIDI and Carbon...
- From: Kurt Bigler <email@hidden>
- Date: Thu, 27 Feb 2003 18:27:25 -0800
on 2/27/03 10:28 AM, James Chandler Jr <email@hidden> wrote:
>
Hi
>
>
Apologies if this has already been discussed to death...
>
>
Since Carbon does not support NewRoutineDescriptor, I suppose this
>
means it is impossible to directly compile-in OMS and FreeMIDI support
>
on a Carbon app (for running the Carbon app in an OS 9 environment)?
>
>
If so, would the easiest workaround be to wrap the OMS and FreeMIDI
>
support into a non-carbon lib, and link to the OMS/FreeMIDI support lib
>
from the Carbon app? Would that work?
Yes, this has been discussed before - at least some aspects - you could
check the archives.
The quick answer:
Many people start questioning their requirement that one single application
file must run on all the Mac platforms, because by far the easiest approach
is to abandon this assumption. Ship a separate OS 9 app. (Even then I
think you can create a fat package that would hide this, but I'm no expert
on that, and of course it has the undesirable effect of creating a larger
application "file".)
Also: I assume you will also be using OS X midi capabilities, in which case
you have to deal with calling Mach-O from carbon.
Calling Mach-O from a carbon app is possible but requires a lot of extra
gymnastics, although there are shortcuts - this is covered in the archives
extensively.
So to do what I think you want you have to stand on your head in two
different areas. Most people decide this is not worth it, except if there
is for some reason an overriding requirement for a single app - e.g. you are
working for someone who can't be reasoned with. :)
Thus the easiest plan is a non-carbon app for OS 9 and a Mach-O app for OS
X.
-Kurt Bigler
>
>
Thanks
>
>
James Chandler Jr.
>
_______________________________________________
>
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.