1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Made sure buffers are prepared before clearing them in the AU wrapper

This commit is contained in:
hogliux 2016-09-20 10:13:43 +01:00
parent b0457a9ec5
commit cbbf76b749

View file

@ -1526,7 +1526,10 @@ private:
err = input->PullInput (flags, timestamp, i, nFrames);
if ((flags & kAudioUnitRenderAction_OutputIsSilence) != 0 || err != noErr)
{
input->PrepareBuffer (nFrames);
AudioUnitHelpers::clearAudioBuffer (input->GetBufferList());
}
}
}
}