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 <jansson.h>
namespace rack {
/** Abstraction for all MIDI drivers in Rack */
namespace midi {

View file

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