Browse Source

Misc fixing

tags/1.9.4
falkTX 13 years ago
parent
commit
9bdfd5d8c3
2 changed files with 15 additions and 3 deletions
  1. +1
    -2
      source/backend/engine/CarlaEngine.cpp
  2. +14
    -1
      source/utils/CarlaThread.hpp

+ 1
- 2
source/backend/engine/CarlaEngine.cpp View File

@@ -1376,6 +1376,7 @@ void CarlaEngine::processRack(float* inBuf[2], float* outBuf[2], const uint32_t
plugin->initBuffers();
plugin->process(inBuf, outBuf, frames);

#if 0
// if plugin has no audio inputs, add previous buffers
if (plugin->audioInCount() == 0)
{
@@ -1385,8 +1386,6 @@ void CarlaEngine::processRack(float* inBuf[2], float* outBuf[2], const uint32_t
outBuf[1][j] += inBuf[1][j];
}
}

#if 0
// if plugin has no midi output, add previous events
if (plugin->midiOutCount() == 0)
{


+ 14
- 1
source/utils/CarlaThread.hpp View File

@@ -172,7 +172,20 @@ public:

bool isRunning()
{
return (fStarted && ! fFinished);
if (fStarted && ! fFinished)
return true;

// take the change to clear data
#ifdef CPP11_THREAD
if (cthread != nullptr)
{
delete cthread;
cthread = nullptr;
}
#else
_zero();
#endif
return false;
}

void waitForStarted(const unsigned int timeout = 0) // ms


Loading…
Cancel
Save