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:
parent
718097fd60
commit
1f15f59db6
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue