A14: MIDI-out từ plugin (VST2/VST3) → SHM → Rust emit → DAW track
- Vst2Instrument: audioMaster callback thu VstEvents, push SHM midiOutQueue
- Vst3Instrument: IEventList output bus (kAudioMasterWantMidi) — check
- SharedMemoryIPC.h: midiOutQueue[64] + midiOutCount (offset 27556/28324, sizeof 28328)
- shm.rs: MidiEventIPC Serialize, drain_midi_out() emit 'bridge-midi-out'
- lib.rs: pump emit midi-out events
- nativeBridgeService.js: onMidiOut API
- app.jsx: route MIDI-out về selected track qua SonicMidiRouter (feedback guard)
- TASKS.md: A14 ✅
This commit is contained in:
@@ -51,6 +51,10 @@ public:
|
||||
// Register the SizeWindow hook (main.cpp posts the resize to the UI
|
||||
// worker). Probe builds never set it -> no-op.
|
||||
static void setResizeHook(void (*fn)(void* hwnd, int w, int h));
|
||||
// A14: register the plugin-MIDI-out sink (main.cpp writes SHM
|
||||
// midiOutQueue). Probe builds never set it -> no-op.
|
||||
static void setMidiOutHook(void (*fn)(uint8_t cmd, uint8_t ch, uint8_t d1,
|
||||
uint8_t d2, uint32_t deltaFrames));
|
||||
|
||||
private:
|
||||
void* state_; // Vst2HostState* (pimpl — aeffect.h stays out of the header)
|
||||
|
||||
Reference in New Issue
Block a user