Clear the buffer passed to processBlock

This commit is contained in:
Anonymous Coward 2023-12-09 07:12:43 +11:00 committed by GitHub
parent b2f6f4f1b8
commit 4b5f431816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,6 +300,7 @@ bool Magical8bitPlug2AudioProcessor::isBusesLayoutSupported (const BusesLayout&
void Magical8bitPlug2AudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffer& midiMessages)
{
buffer.clear();
synth.renderNextBlock (buffer, midiMessages, 0, buffer.getNumSamples());
}