Browse Source

Merge branch 'master' of github.com:VCVRack/Rack

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
aaeb6ffe31
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/core/AudioInterface.cpp

+ 5
- 0
src/core/AudioInterface.cpp View File

@@ -161,6 +161,11 @@ void AudioInterface::step() {
} }


void AudioInterface::stepStream(const float *input, float *output, int numFrames) { void AudioInterface::stepStream(const float *input, float *output, int numFrames) {
if (gPaused) {
memset(output, 0, sizeof(float) * numOutputs * numFrames);
return;
}

if (numOutputs > 0) { if (numOutputs > 0) {
// Wait for enough input before proceeding // Wait for enough input before proceeding
while (inputSrcBuffer.size() < numFrames) { while (inputSrcBuffer.size() < numFrames) {


Loading…
Cancel
Save