Browse Source

Remove behavior that clears MIDI messages too far in the future in InputQueue::tryPop().

tags/v2.2.3
Andrew Belt 1 year ago
parent
commit
31ddd65c79
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      src/midi.cpp

+ 0
- 6
src/midi.cpp View File

@@ -339,12 +339,6 @@ bool InputQueue::tryPop(Message* messageOut, int64_t maxFrame) {
return true; return true;
} }


// If next MIDI message is too far in the future, clear the queue.
// This solves the issue of unconsumed messages getting stuck in the future when a DAW rewinds the engine frame.
int futureFrames = 2 * APP->engine->getBlockFrames();
if (msg.getFrame() - maxFrame > futureFrames) {
internal->queue.clear();
}
return false; return false;
} }




Loading…
Cancel
Save