(svn r4692) - Use DEBUG() instead of direct fprintf in extmidi music driver, and silence 'set volume not implemented' warning at the default debug level.
authorpeter1138
Tue, 02 May 2006 19:09:49 +0000
changeset 3721 200e79fe4502
parent 3720 755978f398d9
child 3722 00921cc83d70
(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
--- a/music/extmidi.c	Tue May 02 18:56:07 2006 +0000
+++ b/music/extmidi.c	Tue May 02 19:09:49 2006 +0000
@@ -6,6 +6,7 @@
 #include "../sound.h"
 #include "../string.h"
 #include "../variables.h"
+#include "../debug.h"
 #include "extmidi.h"
 #include <fcntl.h>
 #include <sys/types.h>
@@ -58,7 +59,7 @@
 
 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 @@
 		}
 
 		case -1:
-			fprintf(stderr, "extmidi: couldn't fork: %s\n", strerror(errno));
+			DEBUG(driver, 0) ("extmidi: couldn't fork: %s", strerror(errno));
 			/* FALLTHROUGH */
 
 		default: