Common Issues When Building Sound Analyser - adamstark/Sound-Analyser GitHub Wiki

XCode - AUResources.r Issues when Building Sound Analyser

This page documents commonly encountered issues when building the Sound Analyser plug-in that relate to the CoreAudio SDK.

(NB. Solution here heavily plagiarised from this post and this post on the JUCE forums).

When attempting to build the plug-in, you may get an error saying something like:

failed to find AUResources/AUResources.r

or similar.

To solve this, you need to do two things...

1. Install CoreAudio SDK

Download the Audio Tools for Xcode - February 2012 (not any more recent version). To do this, open XCode and go to:

Xcode menu > Open Developer Tool > More Developer Tools...

then log in with your Apple ID and find the Audio Tools for Xcode - February 2012 download.

Once you have completed the download, open Finder and navigate to:

Applications > Xcode > Show Package Contents > Contents > Developer

Once there, create a new folder called Extras and move the CoreAudio folder from the download into it.

2. Fix Issues in the AudioUnit framework

Even with that done, you may have some further errors relating to the Audio Unit framework code itself.

Firstly, in AUCarbonViewBase.cpp, at line 257, replace:

HISize originalSize = { mBottomRight.h, mBottomRight.v };

with:

HISize originalSize = { static_cast<CGFloat>(mBottomRight.h), static_cast<CGFloat>(mBottomRight.v) };

Then, in AUMIDIEffectBase.cpp, at line 154, replace:

result = This->MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);

with:

result = This->AUMIDIBase::MIDIEvent(inStatus, inData1, inData2, inOffsetSampleFrame);

and it should compile.

⚠️ **GitHub.com Fallback** ⚠️