Audio Unit hosting requires c++?
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