Re: MusicDevice implementation
Re: MusicDevice implementation
- Subject: Re: MusicDevice implementation
- From: Robert Grant <email@hidden>
- Date: Fri, 7 Nov 2003 21:16:43 -0500
Sounds like a perfect candidate for trying out the new Cocoa View
support for AUs :-)
Not that there's a host available yet I think.
Robert.
On Nov 7, 2003, at 6:38 PM, Christopher Corbell wrote:
On Nov 7, 2003, at 2:45 PM, Mark's Studio wrote:
I have a Cocoa Synth app, and instead of converting it to a
MusicDevice,
i want to make a MusicDevice with a very simple UI that send midi to
the Cocoa app and makes a callback to the Cocoa app to generate the
audio.
There are some key things missing from the description.
Is the MusicDevice going to be accessible from other host apps,
or only from yours?
If it's accessible from other host apps, you've got to deal
with interprocess data sharing issues and other things that
make it a -much- more complicated task than it would be to
just port your app's midi handling and rendering code to an
encapsulated module that you can compile into the unit.
OTOH if you're just trying to wrap some functionality in your
app in a MusicDevice shim so that you can e.g. use other features
of AudioUnits, yes you should be able to use some extern globals
or special properties to share information from your app with
your unit after its loaded - presumably you'll just want to call
app global functions or use an app object from within the
plugin code, to do the actual work?
However even in the latter case IMO it would be better to factor
your code and put the functionality into your MusicDevice -
cleaner architecturally for both plug-in and app, and with
the bonus of a portable plug-in that you could market or use
with other hosts.
hth,
Christopher
_______________________________________________
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.