View Full Version : Compiling Problem with AudioUnit Framework

May 3, 2012, 09:42 AM
I am having trouble getting a project using AudioUnit.h to compile. I made a simple test project to try to locate the error. Here is the .h file:

#import <Cocoa/Cocoa.h>
#import <AudioUnit/AudioUnit.h>

@interface THController : NSObject {
AudioComponentInstance x;


I've added the AudioUnit framework. I get "syntax error before AudioComponentInstance". In my real project I get a lot of "undeclared . . ." messages as well. What's going on?

May 3, 2012, 10:05 AM
It seems I am using some old code. The variable AudioComponentInstance is contained in AudioComponent.h, which is not a part of the AudioUnit framework. Does anyone know about this?