1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioUnitPluginFormat: Fix result of hasEditor on Mac

Fixes a bug introduced in 7d1918b385,
where Ozone 9's editor failed to open correctly in the AudioPluginHost.
This commit is contained in:
reuk 2021-10-14 12:28:27 +01:00
parent 718097fd60
commit 1f15f59db6
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -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;