Browse Source

carla-vst: tell host we want MIDI events, add some TODO comments

tags/1.9.5
falkTX 10 years ago
parent
commit
3890ee5a80
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      source/plugin/carla-vst.cpp

+ 12
- 0
source/plugin/carla-vst.cpp View File

@@ -108,6 +108,9 @@ public:
fVstRect.right = 740; fVstRect.right = 740;


init(); init();

// tell host we want MIDI events
fAudioMaster(fEffect, audioMasterWantMidi, 0, 0, nullptr, 0.0f);
} }


~NativePlugin() ~NativePlugin()
@@ -302,6 +305,13 @@ public:
return 1; return 1;
if (std::strcmp(canDo, "receiveVstTimeInfo") == 0) if (std::strcmp(canDo, "receiveVstTimeInfo") == 0)
return 1; return 1;
#if 0
// TODO - MIDI Out
if (std::strcmp(canDo, "sendVstEvents") == 0)
return 1;
if (std::strcmp(canDo, "sendVstMidiEvent") == 0)
return 1;
#endif
} }
break; break;
} }
@@ -366,6 +376,8 @@ public:
if (fHandle != nullptr) if (fHandle != nullptr)
fDescriptor->process(fHandle, const_cast<float**>(inputs), outputs, static_cast<uint32_t>(sampleFrames), fMidiEvents, fMidiEventCount); fDescriptor->process(fHandle, const_cast<float**>(inputs), outputs, static_cast<uint32_t>(sampleFrames), fMidiEvents, fMidiEventCount);


// TODO: MIDI Out

fMidiEventCount = 0; fMidiEventCount = 0;
} }




Loading…
Cancel
Save