AudioPluginHost fails to compile on Mac as 64 bit target


#1

Xcode 4.3 complains about “unknown type ‘AudioUnitEvent’” in juce_AudioPluginFormat.mm . I see that the event-related code has just been added three days ago… strangely enough it compiles when building for 32 bit but not for 64 bit. I can’t see why…


#2

Anybody else with this issue? Host developers, I know who you are… 8)


#3

In juce_AudioUnitPluginFormat.mm at line 34 we have

#if JUCE_SUPPORT_CARBON
#include <AudioToolbox/AudioUnitUtilities.h>
#include <AudioUnit/AudioUnitCarbonView.h>
#endif

The AudioUnitUtilities-include should be outside the if clause, otherwise 64 bit doesn’t know about AudioUnitEvents (I don’t think there’s a reason to only include it for Carbon apps, right) ?


#4

You’re right, thanks! I’ll move that include…