From ccf98189026d14d65fa6e0b06553084967279707 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 17 Oct 2022 13:50:44 +0100 Subject: [PATCH] AU Client: Fix bug where PluginHostType reported a wrapper type of "undefined" for AU plug-ins --- modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm index 98534d661d..4e85f0e501 100644 --- a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm +++ b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm @@ -2425,6 +2425,10 @@ AUSDK_COMPONENT_ENTRY (FACTORY_BASE_CLASS, JuceAU) #define JUCE_AU_ENTRY_POINT_NAME JUCE_CONCAT (JucePlugin_AUExportPrefix, Factory) extern "C" void* JUCE_AU_ENTRY_POINT_NAME (const AudioComponentDescription* inDesc); -AUSDK_EXPORT extern "C" void* JUCE_AU_ENTRY_POINT_NAME (const AudioComponentDescription* inDesc) { return JuceAUFactory (inDesc); } +AUSDK_EXPORT extern "C" void* JUCE_AU_ENTRY_POINT_NAME (const AudioComponentDescription* inDesc) +{ + PluginHostType::jucePlugInClientCurrentWrapperType = AudioProcessor::wrapperType_AudioUnit; + return JuceAUFactory (inDesc); +} #endif