Prevent pitchbend events from creating xruns

This commit is contained in:
Jean Pierre Cimalando 2020-09-08 08:47:53 +02:00
parent 21ea544684
commit d2362609a0

View file

@ -76,6 +76,8 @@ void sfz::MidiState::setSamplesPerBlock(int samplesPerBlock) noexcept
ccEvents.shrink_to_fit();
ccEvents.reserve(samplesPerBlock);
}
pitchEvents.shrink_to_fit();
pitchEvents.reserve(samplesPerBlock);
}
float sfz::MidiState::getNoteDuration(int noteNumber, int delay) const