From 61a57c5220238a60c7a3b2a21536649e50a56f4c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 25 Dec 2013 03:24:33 +0000 Subject: Fix more const-correctness violations. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@5196 a436a847-0d15-0410-975c-d299462d15a1 --- src/mdaDX10.cpp | 2 +- src/mdaEPiano.cpp | 2 +- src/mdaJX10.cpp | 2 +- src/mdaPiano.cpp | 2 +- wscript | 2 +- 5 files changed, 5 insertions(+), 5 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) { diff --git a/wscript b/wscript index 0e55dd4..0fd8698 100644 --- a/wscript +++ b/wscript @@ -22,7 +22,7 @@ def configure(conf): conf.line_just = 23 autowaf.display_header('MDA.lv2 Configuration') - autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0', uselib_store='LV2') + autowaf.check_pkg(conf, 'lv2', atleast_version='1.2.0', uselib_store='LV2') autowaf.display_msg(conf, "LV2 bundle directory", conf.env.LV2DIR) -- cgit v1.2.1