Browse Source

AU plugins show up now

tags/v2.1-alpha1-winvst
parent
commit
2cf7c166e0
3 changed files with 14 additions and 2 deletions
  1. +2
    -1
      source/backend/utils/CachedPlugins.cpp
  2. +2
    -0
      source/bridges-plugin/CarlaBridgePlugin.cpp
  3. +10
    -1
      source/frontend/carla_database.py

+ 2
- 1
source/backend/utils/CachedPlugins.cpp View File

@@ -500,7 +500,7 @@ static const CarlaCachedPluginInfo* get_cached_plugin_au(const juce::String plug
info.valid = false;

juce::AudioUnitPluginFormat auFormat;
juce::OwnedArray<juce::PluginDescription> results;
juce::OwnedArray<juce::PluginDescription> results;
auFormat.findAllTypesForFile(results, pluginId);
CARLA_SAFE_ASSERT_RETURN(results.size() > 0, &info);
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.hints = 0x0;
info.valid = true;

if (desc->isInstrument)
info.hints |= CB::PLUGIN_IS_SYNTH;


+ 2
- 0
source/bridges-plugin/CarlaBridgePlugin.cpp View File

@@ -251,6 +251,8 @@ public:
gIsInitiated = true;

#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::main(JUCE_MAIN_FUNCTION_ARGS);
#else


+ 10
- 1
source/frontend/carla_database.py View File

@@ -486,6 +486,12 @@ class SearchPluginsThread(QThread):
else:
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.fCheckNative:
self.fCurCount += 1
@@ -1724,6 +1730,9 @@ class PluginDatabaseW(QDialog):
elif ptype == PLUGIN_LV2:
ptypeStr = "LV2"
ptypeStrTr = ptypeStr
elif ptype == PLUGIN_AU:
ptypeStr = "AU"
ptypeStrTr = ptypeStr
#elif ptype == PLUGIN_SFZ:
#ptypeStr = "SFZ"
#ptypeStrTr = ptypeStr
@@ -1735,7 +1744,7 @@ class PluginDatabaseW(QDialog):

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 = []
pluginCount = pluginCountNew



Loading…
Cancel
Save