| @@ -500,7 +500,7 @@ static const CarlaCachedPluginInfo* get_cached_plugin_au(const juce::String plug | |||||
| info.valid = false; | info.valid = false; | ||||
| juce::AudioUnitPluginFormat auFormat; | juce::AudioUnitPluginFormat auFormat; | ||||
| juce::OwnedArray<juce::PluginDescription> results; | |||||
| juce::OwnedArray<juce::PluginDescription> results; | |||||
| auFormat.findAllTypesForFile(results, pluginId); | auFormat.findAllTypesForFile(results, pluginId); | ||||
| CARLA_SAFE_ASSERT_RETURN(results.size() > 0, &info); | CARLA_SAFE_ASSERT_RETURN(results.size() > 0, &info); | ||||
| CARLA_SAFE_ASSERT(results.size() == 1); | CARLA_SAFE_ASSERT(results.size() == 1); | ||||
| @@ -510,6 +510,7 @@ static const CarlaCachedPluginInfo* get_cached_plugin_au(const juce::String plug | |||||
| info.category = CB::getPluginCategoryFromName(desc->category.toRawUTF8()); | info.category = CB::getPluginCategoryFromName(desc->category.toRawUTF8()); | ||||
| info.hints = 0x0; | info.hints = 0x0; | ||||
| info.valid = true; | |||||
| if (desc->isInstrument) | if (desc->isInstrument) | ||||
| info.hints |= CB::PLUGIN_IS_SYNTH; | info.hints |= CB::PLUGIN_IS_SYNTH; | ||||
| @@ -251,6 +251,8 @@ public: | |||||
| gIsInitiated = true; | gIsInitiated = true; | ||||
| #if defined(USING_JUCE) && (defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN)) | #if defined(USING_JUCE) && (defined(CARLA_OS_MAC) || defined(CARLA_OS_WIN)) | ||||
| static const int argc = 0; | |||||
| static const char* argv[] = {}; | |||||
| juce::JUCEApplicationBase::createInstance = &juce_CreateApplication; | juce::JUCEApplicationBase::createInstance = &juce_CreateApplication; | ||||
| juce::JUCEApplicationBase::main(JUCE_MAIN_FUNCTION_ARGS); | juce::JUCEApplicationBase::main(JUCE_MAIN_FUNCTION_ARGS); | ||||
| #else | #else | ||||
| @@ -486,6 +486,12 @@ class SearchPluginsThread(QThread): | |||||
| else: | else: | ||||
| self.fCheckLV2 = False | self.fCheckLV2 = False | ||||
| if self.fCheckAU: | |||||
| if self.fCheckNative or self.fCheckPosix32: | |||||
| self.fCurCount += int(self.fCheckNative) + int(self.fCheckPosix32) | |||||
| else: | |||||
| self.fCheckAU = False | |||||
| if self.fCheckSFZ: | if self.fCheckSFZ: | ||||
| if self.fCheckNative: | if self.fCheckNative: | ||||
| self.fCurCount += 1 | self.fCurCount += 1 | ||||
| @@ -1724,6 +1730,9 @@ class PluginDatabaseW(QDialog): | |||||
| elif ptype == PLUGIN_LV2: | elif ptype == PLUGIN_LV2: | ||||
| ptypeStr = "LV2" | ptypeStr = "LV2" | ||||
| ptypeStrTr = ptypeStr | ptypeStrTr = ptypeStr | ||||
| elif ptype == PLUGIN_AU: | |||||
| ptypeStr = "AU" | |||||
| ptypeStrTr = ptypeStr | |||||
| #elif ptype == PLUGIN_SFZ: | #elif ptype == PLUGIN_SFZ: | ||||
| #ptypeStr = "SFZ" | #ptypeStr = "SFZ" | ||||
| #ptypeStrTr = ptypeStr | #ptypeStrTr = ptypeStr | ||||
| @@ -1735,7 +1744,7 @@ class PluginDatabaseW(QDialog): | |||||
| pluginCountNew = gCarla.utils.get_cached_plugin_count(ptype, path) | pluginCountNew = gCarla.utils.get_cached_plugin_count(ptype, path) | ||||
| if pluginCountNew != pluginCount or (len(plugins) > 0 and plugins[0]['API'] != PLUGIN_QUERY_API_VERSION): | |||||
| if pluginCountNew != pluginCount or len(plugins) != pluginCount or (len(plugins) > 0 and plugins[0]['API'] != PLUGIN_QUERY_API_VERSION): | |||||
| plugins = [] | plugins = [] | ||||
| pluginCount = pluginCountNew | pluginCount = pluginCountNew | ||||