|
@@ -43,11 +43,11 @@ CarlaEngineThread::~CarlaEngineThread() |
|
|
|
|
|
|
|
|
void CarlaEngineThread::run() |
|
|
void CarlaEngineThread::run() |
|
|
{ |
|
|
{ |
|
|
|
|
|
CARLA_SAFE_ASSERT_RETURN(fEngine != nullptr,); |
|
|
CARLA_ASSERT(fEngine->isRunning()); |
|
|
CARLA_ASSERT(fEngine->isRunning()); |
|
|
carla_debug("CarlaEngineThread::run()"); |
|
|
carla_debug("CarlaEngineThread::run()"); |
|
|
|
|
|
|
|
|
bool oscRegisted, needsSingleThread; |
|
|
bool oscRegisted, needsSingleThread; |
|
|
unsigned int i, count; |
|
|
|
|
|
float value; |
|
|
float value; |
|
|
|
|
|
|
|
|
while (fEngine->isRunning() && ! threadShouldExit()) |
|
|
while (fEngine->isRunning() && ! threadShouldExit()) |
|
@@ -58,7 +58,7 @@ void CarlaEngineThread::run() |
|
|
oscRegisted = fEngine->isOscControlRegistered(); |
|
|
oscRegisted = fEngine->isOscControlRegistered(); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
for (i=0, count = fEngine->getCurrentPluginCount(); i < count; ++i) |
|
|
|
|
|
|
|
|
for (unsigned int i=0, count = fEngine->getCurrentPluginCount(); i < count; ++i) |
|
|
{ |
|
|
{ |
|
|
CarlaPlugin* const plugin(fEngine->getPluginUnchecked(i)); |
|
|
CarlaPlugin* const plugin(fEngine->getPluginUnchecked(i)); |
|
|
|
|
|
|
|
@@ -80,7 +80,7 @@ void CarlaEngineThread::run() |
|
|
// ------------------------------------------------------- |
|
|
// ------------------------------------------------------- |
|
|
// Update parameter outputs |
|
|
// Update parameter outputs |
|
|
|
|
|
|
|
|
for (uint32_t j=0; j < plugin->getParameterCount(); ++j) |
|
|
|
|
|
|
|
|
for (uint32_t j=0, pcount=plugin->getParameterCount(); j < pcount; ++j) |
|
|
{ |
|
|
{ |
|
|
if (! plugin->isParameterOutput(j)) |
|
|
if (! plugin->isParameterOutput(j)) |
|
|
continue; |
|
|
continue; |
|
@@ -113,7 +113,7 @@ void CarlaEngineThread::run() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
fEngine->idleOsc(); |
|
|
fEngine->idleOsc(); |
|
|
sleep(oscRegisted ? 30 : 50); |
|
|
|
|
|
|
|
|
Thread::sleep(oscRegisted ? 30 : 50); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|