|
|
@@ -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; |
|
|
|
} |
|
|
|
|
|
|
|