From 1f15f59db6210b0cf2db61ef72ad63f89d3c4d4f Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 14 Oct 2021 12:28:27 +0100 Subject: [PATCH] AudioUnitPluginFormat: Fix result of hasEditor on Mac Fixes a bug introduced in 7d1918b385c600e1910dd5b744b583a42a26d8a1, where Ozone 9's editor failed to open correctly in the AudioPluginHost. --- .../format_types/juce_AudioUnitPluginFormat.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm index 3e502c38b7..8f85e1855e 100644 --- a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +++ b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm @@ -1123,12 +1123,16 @@ public: bool hasEditor() const override { + #if JUCE_MAC + return true; + #else UInt32 dataSize; Boolean isWritable; return (AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_RequestViewController, kAudioUnitScope_Global, 0, &dataSize, &isWritable) == noErr && dataSize == sizeof (uintptr_t) && isWritable != 0); + #endif } AudioProcessorEditor* createEditor() override;