|
@@ -90,7 +90,7 @@ protected: |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
fEngine->setOption(static_cast<EngineOption>(option), value, valueStr); |
|
|
fEngine->setOption(static_cast<EngineOption>(option), value, valueStr); |
|
|
} catch(...) {} |
|
|
|
|
|
|
|
|
} CARLA_SAFE_EXCEPTION("setOption"); |
|
|
|
|
|
|
|
|
delete[] valueStr; |
|
|
delete[] valueStr; |
|
|
} |
|
|
} |
|
@@ -102,7 +102,7 @@ protected: |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
ok = fEngine->loadFile(filename); |
|
|
ok = fEngine->loadFile(filename); |
|
|
} catch(...) {} |
|
|
|
|
|
|
|
|
} CARLA_SAFE_EXCEPTION("loadFile"); |
|
|
|
|
|
|
|
|
delete[] filename; |
|
|
delete[] filename; |
|
|
} |
|
|
} |
|
@@ -114,7 +114,7 @@ protected: |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
ok = fEngine->loadProject(filename); |
|
|
ok = fEngine->loadProject(filename); |
|
|
} catch(...) {} |
|
|
|
|
|
|
|
|
} CARLA_SAFE_EXCEPTION("loadProject"); |
|
|
|
|
|
|
|
|
delete[] filename; |
|
|
delete[] filename; |
|
|
} |
|
|
} |
|
@@ -126,7 +126,7 @@ protected: |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
ok = fEngine->saveProject(filename); |
|
|
ok = fEngine->saveProject(filename); |
|
|
} catch(...) {} |
|
|
|
|
|
|
|
|
} CARLA_SAFE_EXCEPTION("saveProject"); |
|
|
|
|
|
|
|
|
delete[] filename; |
|
|
delete[] filename; |
|
|
} |
|
|
} |
|
@@ -141,7 +141,7 @@ protected: |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
ok = fEngine->patchbayConnect(groupA, portA, groupB, portB); |
|
|
ok = fEngine->patchbayConnect(groupA, portA, groupB, portB); |
|
|
} catch(...) {} |
|
|
|
|
|
|
|
|
} CARLA_SAFE_EXCEPTION("patchbayConnect"); |
|
|
} |
|
|
} |
|
|
else if (std::strcmp(msg, "patchbay_disconnect") == 0) |
|
|
else if (std::strcmp(msg, "patchbay_disconnect") == 0) |
|
|
{ |
|
|
{ |
|
@@ -151,13 +151,13 @@ protected: |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
ok = fEngine->patchbayDisconnect(connectionId); |
|
|
ok = fEngine->patchbayDisconnect(connectionId); |
|
|
} catch(...) {} |
|
|
|
|
|
|
|
|
} CARLA_SAFE_EXCEPTION("patchbayDisconnect"); |
|
|
} |
|
|
} |
|
|
else if (std::strcmp(msg, "patchbay_refresh") == 0) |
|
|
else if (std::strcmp(msg, "patchbay_refresh") == 0) |
|
|
{ |
|
|
{ |
|
|
try { |
|
|
try { |
|
|
ok = fEngine->patchbayRefresh(); |
|
|
ok = fEngine->patchbayRefresh(); |
|
|
} catch(...) {} |
|
|
|
|
|
|
|
|
} CARLA_SAFE_EXCEPTION("patchbayRefresh"); |
|
|
} |
|
|
} |
|
|
else if (std::strcmp(msg, "transport_play") == 0) |
|
|
else if (std::strcmp(msg, "transport_play") == 0) |
|
|
{ |
|
|
{ |
|
@@ -1234,6 +1234,9 @@ protected: |
|
|
uiServerCallback(ENGINE_CALLBACK_PLUGIN_ADDED, i, 0, 0, 0.0f, plugin->getName()); |
|
|
uiServerCallback(ENGINE_CALLBACK_PLUGIN_ADDED, i, 0, 0, 0.0f, plugin->getName()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (fIsPatchbay) |
|
|
|
|
|
patchbayRefresh(); |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|