aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorFilippos Karapetis2013-01-06 21:43:51 +0200
committerFilippos Karapetis2013-01-06 21:54:40 +0200
commit05bf234b2691ea7cbf2ad9ae841d26d91f415f7d (patch)
tree66a82b35b06d1d9b6206175719b0b535984f8eb0 /audio
parent71304b6e77d22d6c642442d96a535ea3f286601c (diff)
downloadscummvm-rg350-05bf234b2691ea7cbf2ad9ae841d26d91f415f7d.tar.gz
scummvm-rg350-05bf234b2691ea7cbf2ad9ae841d26d91f415f7d.tar.bz2
scummvm-rg350-05bf234b2691ea7cbf2ad9ae841d26d91f415f7d.zip
MT-32: Only show MUNT debug messages for debug level 4 and above (bug #3599702)
This avoids showing warnings in the intro of FOTAQ when using the MT-32 emulator
Diffstat (limited to 'audio')
-rw-r--r--audio/softsynth/mt32.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/softsynth/mt32.cpp b/audio/softsynth/mt32.cpp
index e2f1f36f2c..38cdaf1c3c 100644
--- a/audio/softsynth/mt32.cpp
+++ b/audio/softsynth/mt32.cpp
@@ -64,6 +64,10 @@ protected:
// Callback for debug messages, in vprintf() format
void printDebug(const char *fmt, va_list list) {
+ // Only show MUNT debug messages for debug level 4 and above
+ if (gDebugLevel < 4)
+ return;
+
char buf[512];
vsnprintf(buf, 512, fmt, list);