Browse Source

Fix MIDI input on JACK Rack mode

tags/1.9.4
falkTX 11 years ago
parent
commit
44c5d4f554
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      source/backend/engine/CarlaEngineJack.cpp
  2. +1
    -1
      source/backend/native/nekobi/DistrhoPluginNekobi.cpp
  3. +1
    -1
      source/backend/native/nekobi/NekoWidget.hpp

+ 1
- 1
source/backend/engine/CarlaEngineJack.cpp View File

@@ -1261,7 +1261,7 @@ protected:


for (uint32_t jackEventIndex=0; jackEventIndex < jackEventCount; ++jackEventIndex) for (uint32_t jackEventIndex=0; jackEventIndex < jackEventCount; ++jackEventIndex)
{ {
if (jackbridge_midi_event_get(&jackEvent, eventIn, jackEventIndex) != 0)
if (! jackbridge_midi_event_get(&jackEvent, eventIn, jackEventIndex))
continue; continue;


EngineEvent* const engineEvent(&kData->bufEvents.in[engineEventIndex++]); EngineEvent* const engineEvent(&kData->bufEvents.in[engineEventIndex++]);


+ 1
- 1
source/backend/native/nekobi/DistrhoPluginNekobi.cpp View File

@@ -159,7 +159,7 @@ DistrhoPluginNekobi::DistrhoPluginNekobi()
DistrhoPluginNekobi::~DistrhoPluginNekobi() DistrhoPluginNekobi::~DistrhoPluginNekobi()
{ {
free(fSynth->voice);
std::free(fSynth->voice);
delete fSynth; delete fSynth;
} }


+ 1
- 1
source/backend/native/nekobi/NekoWidget.hpp View File

@@ -80,7 +80,7 @@ public:
if (fTimer == fTimerSpeed*9) if (fTimer == fTimerSpeed*9)
{ {
if (fCurAction == kActionNone) if (fCurAction == kActionNone)
fCurAction = static_cast<Action>(rand() % kActionCount);
fCurAction = static_cast<Action>(std::rand() % kActionCount);
else else
fCurAction = kActionNone; fCurAction = kActionNone;




Loading…
Cancel
Save