Re: Core Audio API for Objective-C ?
Re: Core Audio API for Objective-C ?
- Subject: Re: Core Audio API for Objective-C ?
- From: Jeff Zacharias <email@hidden>
- Date: Mon, 9 Jun 2003 22:04:13 -0400
Tommy,
I downloaded the MTCoreAudio framework, it looked like what I wanted,
and in about 1/2 I had most of the code done that I needed. It would
have taken me days to use HAL. Thanks.
Jeff
On Monday, June 9, 2003, at 08:49 PM, Tommy Braas wrote:
Jeff,
I would recommend that you have a look at MTCoreAudio,
http://aldebaran.armory.com/~zenomt/macosx/MTCoreAudio/
It wraps the CoreAudio APIs in Objective-C and should be easier for
you to use than the pure C API.
If you are unable to use the MTCoreAudio for any reason, I'll be happy
to provide help off this list.
Good luck,
Tommy Braas
On Monday, Jun 9, 2003, at 16:57 US/Pacific, Jeff Zacharias wrote:
I have been programing in Cocoa and Java for some time and I really
like Java. My current project needd use of some Frameworks that
aren't available directly to Java, like accessing FireWire hardware,
so I quickly learned Objective-C and that's working fine. I have now
gotten to the part of my code where I want to use Core Audio. I
imported the Framework and can see the header files. I looked for
documentation and the documentation references the Java API and says
to use it because the Objective-C is pretty much the same.
I look at the Java documentation and find the AudioHardware class
with the getAudioDevices() method. This look just like what I want to
use first so I code it up in Objective-C and find there is not a
corresponding AudioHardware class. Crap. I then look in the
AudioHardware.h file and see what's available. I don't see the
equivalent of AudioHardware. getAudioDevices(). So, I dig around
some more and I find this sample code called Daisy. I look it over
and see that there is a C file called HalRoutines.c that has the
equivalent of getAudioDevices coded up in C code making a bunch of
calls to the code in the CoreAudio framework.
So, it looks like if I was coding in Java I get some easy to use
classes that have what I want to do. If I code in Objecttive-C I
have to do a bunch of extra C coding to get audio device properties
etc. I could probably copy the HalRoutines code into my project and
use it but it seems like if there are Java classes there should be
Objective-C classes. Am I missing something ? Is it really much
harder to do this in Objective-C than in Java ?
Jeff Z
_______________________________________________
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.