Browse Source

Cleanup

tags/1.9.7
falkTX 11 years ago
parent
commit
0d7861c926
4 changed files with 17 additions and 17 deletions
  1. +10
    -6
      source/carla_database.py
  2. +3
    -10
      source/carla_host.py
  3. +3
    -0
      source/carla_shared.py
  4. +1
    -1
      source/native-plugins/resources/carla-plugin

+ 10
- 6
source/carla_database.py View File

@@ -45,12 +45,16 @@ from carla_shared import *
# ------------------------------------------------------------------------------------------------------------
# Try Import LADSPA-RDF

try:
import ladspa_rdf
import json
haveLRDF = True
except:
qWarning("LRDF Support not available (LADSPA-RDF will be disabled)")
if not CXFREEZE:
try:
import ladspa_rdf
import json
haveLRDF = True
except:
qWarning("LRDF Support not available (LADSPA-RDF will be disabled)")
haveLRDF = False
else:
qWarning("LRDF Support disabled for static build (LADSPA-RDF will be disabled)")
haveLRDF = False

# ------------------------------------------------------------------------------------------------------------


+ 3
- 10
source/carla_host.py View File

@@ -2106,14 +2106,7 @@ def fileCallback(ptr, action, isDir, title, filter):
# ------------------------------------------------------------------------------------------------------------
# Init host

def initHost(initName, libPrefixOrPluginClass, isControl, isPlugin, failError):
if isPlugin:
PluginClass = libPrefixOrPluginClass
libPrefix = None
else:
PluginClass = None
libPrefix = libPrefixOrPluginClass

def initHost(initName, libPrefix, isControl, isPlugin, failError, HostClass = None):
pathBinaries, pathResources = getPaths(libPrefix)

# --------------------------------------------------------------------------------------------------------
@@ -2146,10 +2139,10 @@ def initHost(initName, libPrefixOrPluginClass, isControl, isPlugin, failError):

if failError:
# no try
host = PluginClass() if isPlugin else CarlaHostQtDLL(os.path.join(pathBinaries, libname))
host = HostClass() if HostClass is not None else CarlaHostQtDLL(os.path.join(pathBinaries, libname))
else:
try:
host = PluginClass() if isPlugin else CarlaHostQtDLL(os.path.join(pathBinaries, libname))
host = HostClass() if HostClass is not None else CarlaHostQtDLL(os.path.join(pathBinaries, libname))
except:
host = CarlaHostQtNull()



+ 3
- 0
source/carla_shared.py View File

@@ -496,6 +496,9 @@ if not CWD:
# make it work with cxfreeze
if os.path.isfile(CWD):
CWD = os.path.dirname(CWD)
CXFREEZE = True
else:
CXFREEZE = False

# ------------------------------------------------------------------------------------------------------------
# Set DLL_EXTENSION


+ 1
- 1
source/native-plugins/resources/carla-plugin View File

@@ -506,7 +506,7 @@ if __name__ == '__main__':
# -------------------------------------------------------------
# Init host backend

host = initHost("Carla-Plugin", PluginHost, False, True, True)
host = initHost("Carla-Plugin", None, False, True, True, PluginHost)
host.processMode = ENGINE_PROCESS_MODE_PATCHBAY if sys.argv[0].lower().endswith("/carla-plugin-patchbay") else ENGINE_PROCESS_MODE_CONTINUOUS_RACK
host.processModeForced = True
host.nextProcessMode = host.processMode


Loading…
Cancel
Save