Re: cross-platform audio software dev
Re: cross-platform audio software dev
- Subject: Re: cross-platform audio software dev
- From: John Michael Zorko <email@hidden>
- Date: Thu, 25 Dec 2008 20:50:01 -0800
Maissam, For developing cross-platform audio software, should I stay away from Core Audio and use openAL? Or is it better to develop several separate versions instead, the mac version being with Core Audio?
Of course you should -- Core Audio is a good API, and it's the way Macs do audio. If you want your audio app to work on OSX, I think you'll have to use it. The whole later part of this ObjC / C++ discussion, which kind of went off-topic off this list (partly due to me), is that, thankfully, Apple's Core Audio API is in C, with some C++ helpers. If you want to do cross-platform development, it's best to keep as much of the code in a platform-agnostic language (like C / C++) as possible, and only use ObjC (Mac) / C# (Windows) when you need to, and abstract the ObjC / C# code from the C / C++ stuff (perhaps by implementing the cross-platform stuff as a shared library or something, and of course there is always #ifdef, though that all too often makes for some ugly code -- far better to use C++ and implement a class factory to do it).
ObjC and C# are both great languages, but, while neither is really _tied_ to the host platform, neither is anywhere near as platform-agnostic as C / C++ is (ObjC means you can't use Microsoft's Visual Studio compiler on Windows, and C# means you can't use Apple's version of gcc on Macs).
Regards,
John
Falling You - exploring the beauty of voice and sound
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden