fix another possible hang in MIDI code

This commit is contained in:
tildearrow 2025-03-21 02:34:02 -05:00
parent 8692aa5ff5
commit 97d6b00322

View file

@ -2070,6 +2070,7 @@ void DivEngine::runMidiClock(int totalCycles) {
void DivEngine::runMidiTime(int totalCycles) {
if (freelance) return;
if (got.rate<1) return;
midiTimeCycles-=totalCycles;
while (midiTimeCycles<=0) {
if (curMidiTimePiece==0) {