• 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
Re: How to add an Audio Unit to Kalimba?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to add an Audio Unit to Kalimba?


  • Subject: Re: How to add an Audio Unit to Kalimba?
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 6 Apr 2008 10:09:30 -0700


On 6 Apr '08, at 4:53 AM, Sam Jew wrote:

the code that's there in the documentation appears to have a different format than the code in the new project, like it's C++ instead of Objective-C. How does one go about combining these in a single file?

The simplest way is to use Objective-C++. Change the suffix of your source file from .m to .mm, and now you can magically use both C++ and Objective-C syntax. (The two types of objects are still distinct, though.)


Supposedly everything is written in C++ in Core Audio, or am I mistaken in this?

The actual system APIs are plain C (because C++ is horribly unsuited to defining system APIs.)
But there's a lot of utility code in the CoreAudio SDK (in /Developer/ Examples/CoreAudio/PublicUtility/), and it's all C++ classes. You don't have to use that, but it helps, and the examples all use it.


In any event, the only documentation on the subject of Audio Units that goes into implementation detail doesn't compile or run.

Have you looked at the examples in /Developer/Examples/CoreAudio/ SimpleSDK? Those all run, and some of them demonstrate how to use AudioUnits and AudioGraphs.


I do agree that the documentation is insufficient and confusing. The total lack of any books doesn't help either. (Why is it there are several books on Quartz but none on CoreAudio?) Audio is hands-down the most difficult type of coding I've ever done on Mac OS, with crypto coming in a distant second.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: How to add an Audio Unit to Kalimba?
      • From: JJB <email@hidden>
    • MIDI control of simple AU parameter?
      • From: Chris Johnson <email@hidden>
References: 
 >How to add an Audio Unit to Kalimba? (From: Sam Jew <email@hidden>)

  • Prev by Date: Re: stopping sound
  • Next by Date: MIDI control of simple AU parameter?
  • Previous by thread: How to add an Audio Unit to Kalimba?
  • Next by thread: MIDI control of simple AU parameter?
  • Index(es):
    • Date
    • Thread