Browse Source

RtAudio fix

tags/1.9.4
falkTX 12 years ago
parent
commit
7b240aba3f
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      source/backend/engine/CarlaEngineRtAudio.cpp

+ 6
- 3
source/backend/engine/CarlaEngineRtAudio.cpp View File

@@ -797,12 +797,15 @@ protected:
float* outsPtr = (float*)outputBuffer;

// assert buffers
CARLA_ASSERT(nframes == fBufferSize);
CARLA_ASSERT(nframes != 0);
CARLA_ASSERT_INT2(nframes == fBufferSize, nframes, fBufferSize);
CARLA_ASSERT(outsPtr != nullptr);

if (kData->curPluginCount == 0 || ! fAudioIsReady)
if (kData->curPluginCount == 0 || fAudioCountOut == 0 || ! fAudioIsReady)
{
carla_zeroFloat(outsPtr, nframes*fAudioCountOut);
if (fAudioCountOut > 0 && fAudioIsReady)
carla_zeroFloat(outsPtr, nframes*fAudioCountOut);

return proccessPendingEvents();
}



Loading…
Cancel
Save