Fix build

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2024-04-15 14:21:09 +02:00 committed by Filipe Coelho
parent 3f0b370c0e
commit 73e75ce012
2 changed files with 7 additions and 5 deletions

View file

@ -29,6 +29,8 @@
#include "choc/choc_SmallVector.h" #include "choc/choc_SmallVector.h"
#include <jansson.h>
namespace rack { namespace rack {
/** Abstraction for all MIDI drivers in Rack */ /** Abstraction for all MIDI drivers in Rack */
namespace midi { namespace midi {

View file

@ -293,11 +293,11 @@ bool InputQueue::tryPop(Message* const messageOut, int64_t maxFrame)
if (processCounterChanged) if (processCounterChanged)
{ {
internal->lastBlockFrame = pcontext->engine->getBlockFrame(); internal->lastBlockFrame = internal->pcontext->engine->getBlockFrame();
internal->lastProcessCounter = processCounter; internal->lastProcessCounter = processCounter;
internal->midiEvents = pcontext->midiEvents; internal->midiEvents = internal->pcontext->midiEvents;
internal->midiEventsLeft = pcontext->midiEventCount; internal->midiEventsLeft = internal->pcontext->midiEventCount;
} }
if (internal->midiEventsLeft == 0 || maxFrame < internal->lastBlockFrame) if (internal->midiEventsLeft == 0 || maxFrame < internal->lastBlockFrame)