aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mdaDX10.cpp2
-rw-r--r--src/mdaEPiano.cpp2
-rw-r--r--src/mdaJX10.cpp2
-rw-r--r--src/mdaPiano.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mdaDX10.cpp b/src/mdaDX10.cpp
index a6ca283..c7ba0a2 100644
--- a/src/mdaDX10.cpp
+++ b/src/mdaDX10.cpp
@@ -453,7 +453,7 @@ int32_t mdaDX10::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{
diff --git a/src/mdaEPiano.cpp b/src/mdaEPiano.cpp
index a7fe066..e967c22 100644
--- a/src/mdaEPiano.cpp
+++ b/src/mdaEPiano.cpp
@@ -505,7 +505,7 @@ int32_t mdaEPiano::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{
diff --git a/src/mdaJX10.cpp b/src/mdaJX10.cpp
index 9805767..fb44899 100644
--- a/src/mdaJX10.cpp
+++ b/src/mdaJX10.cpp
@@ -751,7 +751,7 @@ int32_t mdaJX10::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index 5ae3bf0..3e15e34 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -468,7 +468,7 @@ int32_t mdaPiano::processEvent(const LV2_Atom_Event* ev)
if (ev->body.type != midiEventType)
return 0;
- const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY(&ev->body);
+ const uint8_t* midiData = (const uint8_t*)LV2_ATOM_BODY_CONST(&ev->body);
switch(midiData[0] & 0xf0) //status byte (all channels)
{