From 9671d6a9eb4ef1d96e0c7b84dc52b183df20efdc Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 2 May 2006 19:09:49 +0000 Subject: (svn r4692) - Use DEBUG() instead of direct fprintf in extmidi music driver, and silence 'set volume not implemented' warning at the default debug level. --- music/extmidi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'music') diff --git a/music/extmidi.c b/music/extmidi.c index 3f893cb46..76a9ab504 100644 --- a/music/extmidi.c +++ b/music/extmidi.c @@ -6,6 +6,7 @@ #include "../sound.h" #include "../string.h" #include "../variables.h" +#include "../debug.h" #include "extmidi.h" #include #include @@ -58,7 +59,7 @@ static bool ExtMidiIsPlaying(void) static void ExtMidiSetVolume(byte vol) { - fprintf(stderr, "extmidi: set volume not implemented\n"); + DEBUG(driver, 1) ("extmidi: set volume not implemented"); } static void DoPlay(void) @@ -81,7 +82,7 @@ static void DoPlay(void) } case -1: - fprintf(stderr, "extmidi: couldn't fork: %s\n", strerror(errno)); + DEBUG(driver, 0) ("extmidi: couldn't fork: %s", strerror(errno)); /* FALLTHROUGH */ default: -- cgit v1.2.3-70-g09d2