Prevent pitchbend events from creating xruns
This commit is contained in:
parent
21ea544684
commit
d2362609a0
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ void sfz::MidiState::setSamplesPerBlock(int samplesPerBlock) noexcept
|
||||||
ccEvents.shrink_to_fit();
|
ccEvents.shrink_to_fit();
|
||||||
ccEvents.reserve(samplesPerBlock);
|
ccEvents.reserve(samplesPerBlock);
|
||||||
}
|
}
|
||||||
|
pitchEvents.shrink_to_fit();
|
||||||
|
pitchEvents.reserve(samplesPerBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
float sfz::MidiState::getNoteDuration(int noteNumber, int delay) const
|
float sfz::MidiState::getNoteDuration(int noteNumber, int delay) const
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue