JUCE v5.4.5
macOS 10.15.2
Xcode 11.3
Starting a new GUI Application in Projucer, and then adding the juce_audio_utils module (just like in the tutorial Build An Audio Player ). After adding this module I get “Expected unqualified-id” errors (see attached image).
I’ve tried changing the deployment target from 10.11 to 10.12, 13, 14, and 15 with no change (I saw this helped someone else with a similar issue ).
Any help would be appreciated.
Thanks,
GW
I don’t know what happened to your juce_AudioAppComponent.h
file, but it seems that it is missing its original line 48:
and runs audio through the default output device.
An application should only create one global instance of this object and multiple
classes should not inherit from this.
This class should not be inherited when creating a plug-in as the host will
handle audio streams from hardware devices.
@tags{Audio}
*/
class JUCE_API AudioAppComponent : public Component,
public AudioSource
{
public:
AudioAppComponent();
AudioAppComponent (AudioDeviceManager&);
~AudioAppComponent() override;
/** A subclass should call this from their constructor, to set up the audio. */
void setAudioChannels (int numInputChannels, int numOutputChannels, const XmlElement* const storedSettings = nullptr);
1 Like
Hey McMartin,
That was definitely it. Not sure how that happened, maybe when I did an update? I deleted the whole Juce folder and re-downloaded it. No errors.
Thanks for the help,
GW
1 Like