From 49720ad168e0abef844f10baf6d4f3968eb15318 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Wed, 3 Nov 2010 01:03:08 +0000 Subject: Removed mpevent(.h, .cpp) and evdata.h from /libsynti, conflicting with copies in /muse, causing crashes. Version in /muse is newer. Should only be one version. --- muse2/synti/fluidsynth/fluidsynti.cpp | 10 ++++------ muse2/synti/fluidsynth/fluidsynti.h | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'muse2/synti/fluidsynth') diff --git a/muse2/synti/fluidsynth/fluidsynti.cpp b/muse2/synti/fluidsynth/fluidsynti.cpp index f14fc90b..d130e741 100644 --- a/muse2/synti/fluidsynth/fluidsynti.cpp +++ b/muse2/synti/fluidsynth/fluidsynti.cpp @@ -14,7 +14,6 @@ #include #include - FluidCtrl FluidSynth::fluidCtrl[] = { //{ "Expression", CTRL_EXPRESSION, 0, 127 }, //{ "Sustain", CTRL_SUSTAIN, 0, 127 }, @@ -164,7 +163,7 @@ void FluidSynth::processMessages() else { if (FS_DEBUG) - printf("FluidSynth::process(): unknown event, type: %d\n", ev.type()); + printf("FluidSynth::processMessages(): unknown event, type: %d\n", ev.type()); } } @@ -684,9 +683,7 @@ void FluidSynth::sendChannelData() *(chdptr+1) = i; //Channel nr chdptr += chunk_size; } - // FIXME By Tim. This is crashing, after the conversion to QT4 and cmake. - printf("MusE FIXME: FluidSynth::sendChannelData() sendSysex disabled.\n"); -/// sendSysex(chdata_length, chdata); + sendSysex(chdata_length, chdata); // Send drum channel info afterwards (later addition, not very neat, but works...) int drumchdata_length = FS_MAX_NR_OF_CHANNELS + 1; //1 byte for the command, one byte for each channel @@ -699,7 +696,8 @@ void FluidSynth::sendChannelData() *drumchdataptr = channels[i].drumchannel; } // FIXME By Tim. This is crashing, after the conversion to QT4 and cmake. -/// sendSysex(drumchdata_length, drumchdata); + //usleep(1000); + sendSysex(drumchdata_length, drumchdata); } //--------------------------------------------------------- diff --git a/muse2/synti/fluidsynth/fluidsynti.h b/muse2/synti/fluidsynth/fluidsynti.h index 10b96b9d..c187798d 100644 --- a/muse2/synti/fluidsynth/fluidsynti.h +++ b/muse2/synti/fluidsynth/fluidsynti.h @@ -17,7 +17,8 @@ #include "fluidsynthgui.h" #include "libsynti/mess.h" #include "muse/debug.h" -#include "libsynti/mpevent.h" +//#include "libsynti/mpevent.h" +#include "muse/mpevent.h" #include "muse/midictrl.h" #define FS_DEBUG_DATA 0 //Turn on/off debug print of midi data sent to fluidsynth -- cgit v1.2.3