Browse Source

Standalone: Cleanup, introduce juce-gui event loop

tags/1.9.4
falkTX 11 years ago
parent
commit
cc1add6c6a
4 changed files with 339 additions and 407 deletions
  1. +2
    -2
      source/backend/CarlaHost.hpp
  2. +331
    -401
      source/backend/standalone/CarlaStandalone.cpp
  3. +2
    -0
      source/carla-plugin
  4. +4
    -4
      source/carla_backend.py

+ 2
- 2
source/backend/CarlaHost.hpp View File

@@ -364,7 +364,7 @@ CARLA_EXPORT bool carla_patchbay_disconnect(int connectionId);
/*!
* Force the engine to resend all patchbay clients, ports and connections again.
*/
CARLA_EXPORT void carla_patchbay_refresh();
CARLA_EXPORT bool carla_patchbay_refresh();

/*!
* Start playback of the engine transport.
@@ -405,7 +405,7 @@ CARLA_EXPORT bool carla_remove_plugin(unsigned int pluginId);
/*!
* Remove all plugins.
*/
CARLA_EXPORT void carla_remove_all_plugins();
CARLA_EXPORT bool carla_remove_all_plugins();

/*!
* Rename plugin with id \a pluginId to \a newName. \n


+ 331
- 401
source/backend/standalone/CarlaStandalone.cpp
File diff suppressed because it is too large
View File


+ 2
- 0
source/carla-plugin View File

@@ -81,6 +81,7 @@ class PluginHost(object):

def patchbay_refresh(self):
self.fParent.send(["patchbay_refresh"])
return True

def add_plugin(self, btype, ptype, filename, name, label, extraStuff):
self.fParent.send(["add_plugin", btype, ptype, filename, name, label])
@@ -92,6 +93,7 @@ class PluginHost(object):

def remove_all_plugins(self):
self.fParent.send(["remove_all_plugins"])
return True

def rename_plugin(self, pluginId, newName):
self.fParent.send(["rename_plugin", pluginId, newName])


+ 4
- 4
source/carla_backend.py View File

@@ -534,7 +534,7 @@ class Host(object):
self.lib.carla_patchbay_disconnect.restype = c_bool

self.lib.carla_patchbay_refresh.argtypes = None
self.lib.carla_patchbay_refresh.restype = None
self.lib.carla_patchbay_refresh.restype = c_bool

self.lib.carla_transport_play.argtypes = None
self.lib.carla_transport_play.restype = None
@@ -558,7 +558,7 @@ class Host(object):
self.lib.carla_remove_plugin.restype = c_bool

self.lib.carla_remove_all_plugins.argtypes = None
self.lib.carla_remove_all_plugins.restype = None
self.lib.carla_remove_all_plugins.restype = c_bool

self.lib.carla_rename_plugin.argtypes = [c_uint, c_char_p]
self.lib.carla_rename_plugin.restype = c_char_p
@@ -793,7 +793,7 @@ class Host(object):
return self.lib.carla_patchbay_disconnect(connectionId)

def patchbay_refresh(self):
self.lib.carla_patchbay_refresh()
return self.lib.carla_patchbay_refresh()

def transport_play(self):
self.lib.carla_transport_play()
@@ -820,7 +820,7 @@ class Host(object):
return self.lib.carla_remove_plugin(pluginId)

def remove_all_plugins(self):
self.lib.carla_remove_all_plugins()
return self.lib.carla_remove_all_plugins()

def rename_plugin(self, pluginId, newName):
return self.lib.carla_rename_plugin(pluginId, newName.encode("utf-8"))


Loading…
Cancel
Save