Browse Source

Fix build

Signed-off-by: falkTX <falktx@falktx.com>
tags/24.05
parent
commit
73e75ce012
2 changed files with 7 additions and 5 deletions
  1. +2
    -0
      include/midi.hpp
  2. +5
    -5
      src/CardinalCommon.cpp

+ 2
- 0
include/midi.hpp 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 {


+ 5
- 5
src/CardinalCommon.cpp 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)


Loading…
Cancel
Save