aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2014-07-11 00:52:58 +0200
committerJohannes Schickel2014-07-11 00:56:10 +0200
commit32df9f77592e1fb709a21e9d1a1bb5b14b15df78 (patch)
tree2ad546d66e14b393b6177d87f429fb260bb35887
parentf8d0a48dcd7efc9194cc3ae13bfbbd883d6a3836 (diff)
downloadscummvm-rg350-32df9f77592e1fb709a21e9d1a1bb5b14b15df78.tar.gz
scummvm-rg350-32df9f77592e1fb709a21e9d1a1bb5b14b15df78.tar.bz2
scummvm-rg350-32df9f77592e1fb709a21e9d1a1bb5b14b15df78.zip
MT32: Comment out default showLCDMessage/printDebug implementations.
This keeps the original MUNT code in showLCDMessage/printDebug and simply comments it out. This *silences* a warning about debug use in our former default replacement code. Since we already implement a ReportHandler there is no need to adapt the default implementation. This is not the cleanest way but the solution which requires the least changes to MUNT code.
-rw-r--r--audio/softsynth/mt32/Synth.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/audio/softsynth/mt32/Synth.cpp b/audio/softsynth/mt32/Synth.cpp
index c6ecf47cad..5ed172f2a8 100644
--- a/audio/softsynth/mt32/Synth.cpp
+++ b/audio/softsynth/mt32/Synth.cpp
@@ -95,13 +95,23 @@ Synth::~Synth() {
}
void ReportHandler::showLCDMessage(const char *data) {
- debug("WRITE-LCD: %s", data);
- debug("\n");
+ // We cannot use printf here. Since we already implement our own
+ // ReportHandler we simply disable the default implementation since it is
+ // never called anyway.
+#if 0
+ printf("WRITE-LCD: %s", data);
+ printf("\n");
+#endif
}
void ReportHandler::printDebug(const char *fmt, va_list list) {
- debug(fmt, list);
- debug("\n");
+ // We cannot use (v)printf here. Since we already implement our own
+ // ReportHandler we simply disable the default implementation since it is
+ // never called anyway.
+#if 0
+ vprintf(fmt, list);
+ printf("\n");
+#endif
}
void Synth::polyStateChanged(int partNum) {