Browse Source

print error when a patchbay [dis]connect fails

tags/1.9.4
falkTX 11 years ago
parent
commit
0fa8a0f44f
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      source/carla.py

+ 4
- 2
source/carla.py View File

@@ -2109,12 +2109,14 @@ def canvasCallback(action, value1, value2, valueStr):
portIdA = value1
portIdB = value2

Carla.host.patchbay_connect(portIdA, portIdB)
if not Carla.host.patchbay_connect(portIdA, portIdB):
print("Connection failed,", cString(Carla.host.get_last_error()))

elif action == patchcanvas.ACTION_PORTS_DISCONNECT:
connectionId = value1

Carla.host.patchbay_disconnect(connectionId)
if not Carla.host.patchbay_disconnect(connectionId):
print("Disconnect failed,", cString(Carla.host.get_last_error()))

def engineCallback(ptr, action, pluginId, value1, value2, value3, valueStr):
if pluginId < 0 or not Carla.gui:


Loading…
Cancel
Save