Browse Source

Misc

tags/1.9.4
falkTX 11 years ago
parent
commit
32dfa4490c
4 changed files with 15 additions and 13 deletions
  1. +3
    -1
      source/backend/CarlaEngine.hpp
  2. +8
    -6
      source/backend/engine/CarlaEngine.cpp
  3. +2
    -2
      source/backend/engine/CarlaEngineJack.cpp
  4. +2
    -4
      source/backend/engine/CarlaEngineOsc.cpp

+ 3
- 1
source/backend/CarlaEngine.hpp View File

@@ -702,13 +702,15 @@ public:

/*!
* Close engine.
* This function always closes the engine even if it returns false.
* In other words, even when something goes wrong when closing the engine it still be closed nonetheless.
*/
virtual bool close();

/*!
* Idle engine.
*/
virtual void idle();
virtual void idle() noexcept;

/*!
* Check if engine is running.


+ 8
- 6
source/backend/engine/CarlaEngine.cpp View File

@@ -839,7 +839,7 @@ bool CarlaEngine::close()
return true;
}

void CarlaEngine::idle()
void CarlaEngine::idle() noexcept
{
CARLA_SAFE_ASSERT_RETURN(pData->nextAction.opcode == kEnginePostActionNull,); // TESTING, remove later
CARLA_SAFE_ASSERT_RETURN(pData->nextPluginId == pData->maxPluginNumber,); // TESTING, remove later
@@ -850,10 +850,14 @@ void CarlaEngine::idle()
CarlaPlugin* const plugin(pData->plugins[i].plugin);

if (plugin != nullptr && plugin->isEnabled())
plugin->idle();
{
try {
plugin->idle();
} CARLA_SAFE_EXCEPTION_CONTINUE("Plugin idle");
}
}

idleOsc();
pData->osc.idle();
}

CarlaEngineClient* CarlaEngine::addClient(CarlaPlugin* const)
@@ -2060,9 +2064,7 @@ bool CarlaEngine::isOscControlRegistered() const noexcept

void CarlaEngine::idleOsc() const noexcept
{
try {
pData->osc.idle();
} catch(...) {}
pData->osc.idle();
}

const char* CarlaEngine::getOscServerPathTCP() const noexcept


+ 2
- 2
source/backend/engine/CarlaEngineJack.cpp View File

@@ -980,7 +980,7 @@ public:
}

#ifndef BUILD_BRIDGE
void idle() override
void idle() noexcept override
{
CarlaEngine::idle();

@@ -1810,7 +1810,7 @@ private:
PatchbayConnectionList fUsedConnections;
LinkedList<uint> fNewGroups;

bool findPluginIdAndIcon(const char* const clientName, int& pluginId, PatchbayIcon& icon)
bool findPluginIdAndIcon(const char* const clientName, int& pluginId, PatchbayIcon& icon) noexcept
{
carla_debug("CarlaEngineJack::findPluginIdAndIcon(\"%s\", ...)", clientName);



+ 2
- 4
source/backend/engine/CarlaEngineOsc.cpp View File

@@ -117,8 +117,7 @@ void CarlaEngineOsc::idle() const noexcept
try {
if (lo_server_recv_noblock(fServerTCP, 0) == 0)
break;
}
CARLA_SAFE_EXCEPTION_CONTINUE("OSC idle TCP")
} CARLA_SAFE_EXCEPTION_CONTINUE("OSC idle TCP")
}
}

@@ -129,8 +128,7 @@ void CarlaEngineOsc::idle() const noexcept
try {
if (lo_server_recv_noblock(fServerUDP, 0) == 0)
break;
}
CARLA_SAFE_EXCEPTION_CONTINUE("OSC idle UDP")
} CARLA_SAFE_EXCEPTION_CONTINUE("OSC idle UDP")
}
}
}


Loading…
Cancel
Save