summaryrefslogtreecommitdiff
path: root/muse2/muse/synth.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2010-10-24 08:21:08 +0000
committerTim E. Real <termtech@rogers.com>2010-10-24 08:21:08 +0000
commit30a64aa8da492ada95aff171b745e7b50145f643 (patch)
tree867c8dd3053928f195535244a685825dba1ade93 /muse2/muse/synth.cpp
parent5ffe4bc73bd86027b2ce78ef804609df6dad03e9 (diff)
See ChangeLog
Diffstat (limited to 'muse2/muse/synth.cpp')
-rw-r--r--muse2/muse/synth.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/muse2/muse/synth.cpp b/muse2/muse/synth.cpp
index f62a0627..4d377fb4 100644
--- a/muse2/muse/synth.cpp
+++ b/muse2/muse/synth.cpp
@@ -511,8 +511,7 @@ void initMidiSynth()
// load Synti dll
void* handle = dlopen(path, RTLD_NOW);
if (handle == 0) {
- //fprintf(stderr, "initMidiSynth: dlopen(%s) failed: %s\n",
- // path, dlerror());
+ fprintf(stderr, "initMidiSynth: MESS dlopen(%s) failed: %s\n", path, dlerror());
//undoSetuid();
//return 0;
++it;
@@ -522,23 +521,25 @@ void initMidiSynth()
MESS_Function msynth = (MESS_Function)dlsym(handle, "mess_descriptor");
if (!msynth) {
- //const char *txt = dlerror();
- //if (txt) {
- // fprintf(stderr,
- // "Unable to find msynth_descriptor() function in plugin "
- // "library file \"%s\": %s.\n"
- // "Are you sure this is a MESS plugin file?\n",
- // info.filePath().ascii(), txt);
+ #if 1
+ const char *txt = dlerror();
+ if (txt) {
+ fprintf(stderr,
+ "Unable to find msynth_descriptor() function in plugin "
+ "library file \"%s\": %s.\n"
+ "Are you sure this is a MESS plugin file?\n",
+ path, txt);
//undoSetuid();
//return 0;
- // }
+ }
+ #endif
dlclose(handle);
++it;
continue;
}
const MESS* descr = msynth();
if (descr == 0) {
- //fprintf(stderr, "Synth::instantiate: no MESS descr found\n");
+ fprintf(stderr, "initMidiSynth: no MESS descr found in %s\n", path);
//undoSetuid();
//return 0;
dlclose(handle);