summaryrefslogtreecommitdiff
path: root/muse2/synti/simpledrums2/simpledrums.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti/simpledrums2/simpledrums.cpp')
-rw-r--r--muse2/synti/simpledrums2/simpledrums.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/muse2/synti/simpledrums2/simpledrums.cpp b/muse2/synti/simpledrums2/simpledrums.cpp
index 6ae7797f..13f1d3e2 100644
--- a/muse2/synti/simpledrums2/simpledrums.cpp
+++ b/muse2/synti/simpledrums2/simpledrums.cpp
@@ -139,36 +139,36 @@ SimpleSynth::SimpleSynth(int sr)
QString c6 = "Channel " + QString::number(ch + 1) + " fx send 2";
QString c7 = "Channel " + QString::number(ch + 1) + " fx send 3";
QString c8 = "Channel " + QString::number(ch + 1) + " fx send 4";
- controllers[i].name = c1.toLatin1().data();
+ controllers[i].name = c1.toLatin1().constData();
controllers[i].num = CTRL_NRPN14_OFFSET+i;
controllers[i].min = 0;
controllers[i].max = 127;
- controllers[i+1].name = c2.toLatin1().data();
+ controllers[i+1].name = c2.toLatin1().constData();
controllers[i+1].num = CTRL_NRPN14_OFFSET+i+1;
controllers[i+1].min = 0;
controllers[i+1].max = 127;
- controllers[i+2].name = c3.toLatin1().data();
+ controllers[i+2].name = c3.toLatin1().constData();
controllers[i+2].num = CTRL_NRPN14_OFFSET+i+2;
controllers[i+2].min = 0;
controllers[i+2].max = 1;
- controllers[i+3].name = c4.toLatin1().data();
+ controllers[i+3].name = c4.toLatin1().constData();
controllers[i+3].num = CTRL_NRPN14_OFFSET+i+3;
controllers[i+3].min = 0;
controllers[i+3].max = 1;
- controllers[i+4].name = c5.toLatin1().data();
+ controllers[i+4].name = c5.toLatin1().constData();
controllers[i+4].num = CTRL_NRPN14_OFFSET+i+4;
- controllers[i+5].name = c6.toLatin1().data();
+ controllers[i+5].name = c6.toLatin1().constData();
controllers[i+5].num = CTRL_NRPN14_OFFSET+i+5;
- controllers[i+6].name = c7.toLatin1().data();
+ controllers[i+6].name = c7.toLatin1().constData();
controllers[i+6].num = CTRL_NRPN14_OFFSET+i+6;
- controllers[i+7].name = c8.toLatin1().data();
+ controllers[i+7].name = c8.toLatin1().constData();
controllers[i+7].num = CTRL_NRPN14_OFFSET+i+7;
controllers[i+4].min = controllers[i+5].min = controllers[i+6].min = controllers[i+7].min = 0;
@@ -180,12 +180,12 @@ SimpleSynth::SimpleSynth(int sr)
for (int sfx=0; sfx<SS_NR_OF_SENDEFFECTS; sfx++) {
QString c1 = "Sendfx " + QString::number(sfx) + " ret gain";
QString c2 = "Sendfx " + QString::number(sfx) + " on/off";
- controllers[i].name = c1.toLatin1().data();
+ controllers[i].name = c1.toLatin1().constData();
controllers[i].num = CTRL_NRPN14_OFFSET+i;
controllers[i].min = 0;
controllers[i].max = 127;
- controllers[i+1].name = c2.toLatin1().data();
+ controllers[i+1].name = c2.toLatin1().constData();
controllers[i+1].num = CTRL_NRPN14_OFFSET+i+1;
controllers[i+1].min = 0;
controllers[i+1].max = 1;
@@ -532,7 +532,7 @@ bool SimpleSynth::sysex(int /*len*/, const unsigned char* data)
QString lib = (const char*) (data + 2);
QString label = (const char*) (data + lib.length() + 3);
if (SS_DEBUG_MIDI) {
- printf("Sysex cmd load effect: %d %s %s\n", fxid, lib.toLatin1().data(), label.toLatin1().data());
+ printf("Sysex cmd load effect: %d %s %s\n", fxid, lib.toLatin1().constData(), label.toLatin1().constData());
}
initSendEffect(fxid, lib, label);
break;
@@ -964,7 +964,7 @@ void SimpleSynth::getInitData(int* n, const unsigned char** data)
if (sendEffects[j].plugin) {
int labelnamelen = sendEffects[j].plugin->label().size() + 1;
buffer[i] = labelnamelen;
- memcpy((buffer+i+1), sendEffects[j].plugin->label().toLatin1().data(), labelnamelen);
+ memcpy((buffer+i+1), sendEffects[j].plugin->label().toLatin1().constData(), labelnamelen);
if (SS_DEBUG_INIT) {
printf("buffer[%d] - labelnamelen: %d\n", i, labelnamelen);
printf("buffer[%d] - buffer[%d] - filename: ", (i+1), (i+1) + labelnamelen - 1);
@@ -978,7 +978,7 @@ void SimpleSynth::getInitData(int* n, const unsigned char** data)
int namelen = sendEffects[j].plugin->lib().size() + 1;
buffer[i] = namelen;
- memcpy((buffer+i+1), sendEffects[j].plugin->lib().toLatin1().data(), namelen);
+ memcpy((buffer+i+1), sendEffects[j].plugin->lib().toLatin1().constData(), namelen);
if (SS_DEBUG_INIT) {
printf("buffer[%d] - libnamelen : %d\n", i, namelen);
printf("buffer[%d] - buffer[%d] - filename: ", (i+1), (i+1) + namelen - 1);
@@ -1524,7 +1524,7 @@ bool SimpleSynth::initSendEffect(int id, QString lib, QString name)
sendEffects[id].outputs = plugin->outports();
if (plugin->instantiate()) {
- SS_DBG2("Plugin instantiated", name.toLatin1().data());
+ SS_DBG2("Plugin instantiated", name.toLatin1().constData());
SS_DBG_I("Parameters", plugin->parameter());
SS_DBG_I("No of inputs", plugin->inports());
SS_DBG_I("No of outputs",plugin->outports());
@@ -1583,7 +1583,7 @@ bool SimpleSynth::initSendEffect(int id, QString lib, QString name)
if (!success) {
QString errorString = "Error loading plugin \"" + plugin->label() + "\"";
- guiSendError(errorString.toLatin1().data());
+ guiSendError(errorString.toLatin1().constData());
}
return success;
SS_TRACE_OUT
@@ -1609,7 +1609,7 @@ void SimpleSynth::cleanupPlugin(int id)
SS_TRACE_IN
LadspaPlugin* plugin = sendEffects[id].plugin;
plugin->stop();
- SS_DBG2("Stopped fx", plugin->label().toLatin1().data());
+ SS_DBG2("Stopped fx", plugin->label().toLatin1().constData());
sendEffects[id].nrofparameters = 0;
sendEffects[id].state = SS_SENDFX_OFF;
sendEffects[id].plugin = 0;