From 31ddd65c79059729c4a9ec5fda503a44ea60b85b Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 25 Jan 2023 19:43:31 -0500 Subject: [PATCH] Remove behavior that clears MIDI messages too far in the future in InputQueue::tryPop(). --- src/midi.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/midi.cpp b/src/midi.cpp index 79c9cc0d..83cba6a2 100644 --- a/src/midi.cpp +++ b/src/midi.cpp @@ -339,12 +339,6 @@ bool InputQueue::tryPop(Message* messageOut, int64_t maxFrame) { 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; }