From 3f5d988041cd926148dd4dee5cfae1aafcb00c72 Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Sun, 28 Apr 2019 22:36:24 -0400 Subject: [PATCH] Fix invalid atom size on sendNote (LV2) --- distrho/src/DistrhoUILV2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrho/src/DistrhoUILV2.cpp b/distrho/src/DistrhoUILV2.cpp index 47223719..140909b0 100644 --- a/distrho/src/DistrhoUILV2.cpp +++ b/distrho/src/DistrhoUILV2.cpp @@ -286,7 +286,7 @@ protected: atomMidiEvent.data[2] = velocity; // send to DSP side - fWriteFunction(fController, eventInPortIndex, sizeof(LV2_Atom_MidiEvent), fEventTransferURID, &atomMidiEvent); + fWriteFunction(fController, eventInPortIndex, lv2_atom_total_size(&atomMidiEvent.atom), fEventTransferURID, &atomMidiEvent); } #endif