• 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
Audio Unit hosting requires c++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio Unit hosting requires c++?


  • Subject: Audio Unit hosting requires c++?
  • From: patrick machielse <email@hidden>
  • Date: Sat, 9 Jun 2007 22:34:34 +0200

I'm trying to get a feel for working with Audio Units. To this end I've written a small command line program that sets up a minimal AUGraph consisting of an AUFilePlayer and the default output unit. Essentially this is a re-implementation of the SimpleSDK PlayFile program, but in a way that actually makes sense (if I say so myself), using just C API.

My simple command line tool works fine and plays audio files if I compile it as a C++ or Objective-C++ program. However, when I try it as a regular C or Objective-C it will compile and link just fine, but the call to AUGraphOpen() will return with an error -2005 (badComponentType).

Furthermore, when I try the code from a Cocoa program, I always get that error, no matter how I compile the code. It seems I'm overlooking something obvious, but I don't know what...

patrick
_______________________________________________
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: Audio Unit hosting requires c++?
      • From: patrick machielse <email@hidden>
  • Prev by Date: Re: Audio Unit Presets and undo
  • Next by Date: Properties displayed in UI
  • Previous by thread: Re: Does AudioUnitGetParameter have a cached value?
  • Next by thread: Re: Audio Unit hosting requires c++?
  • Index(es):
    • Date
    • Thread