• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Audio API for Objective-C ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Audio API for Objective-C ?


  • Subject: Core Audio API for Objective-C ?
  • From: Jeff Zacharias <email@hidden>
  • Date: Mon, 9 Jun 2003 19:57:33 -0400

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.

  • Follow-Ups:
    • Re: Core Audio API for Objective-C ?
      • From: Tommy Braas <email@hidden>
  • Prev by Date: Re: Yamaha UX16
  • Next by Date: Re: Core Audio API for Objective-C ?
  • Previous by thread: Re: Peak meter?
  • Next by thread: Re: Core Audio API for Objective-C ?
  • Index(es):
    • Date
    • Thread