Sound Block Undeclared indentifier

I am trying to use the code from these two links (almost the same LINK1 LINK2 ). But none of them work, even if the second link is a guide to the Apple program.

As I said, the actual error is "using an undeclared identifier" in many data types. To keep this a little shorter, I just show the top 2 data types.

 AudioComponentInstance audioUnit;
 AudioComponentDescription desc;

From the search I did should be this , which says they are in the AudioUnit structure. AudioUnit.framework is added to my “binary link library links”, so I don’t understand why these data types were not found.

0
source share
1 answer

In the comments above, I did not import the title. I needed to add

#import <AudioUnit/AudioUnit.h>
0
source

All Articles