summaryrefslogtreecommitdiff
path: root/music/extmidi.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-02 19:09:49 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-02 19:09:49 +0000
commitbd6aba9827506d837afe0cf69a1f0847cda3c6e0 (patch)
tree049a9edb4074eb41ddcfcf8f803e0f4879be72d5 /music/extmidi.c
parentb945e9249a2bc56bf5f945d5ccbdf0cb483d6e7c (diff)
downloadopenttd-bd6aba9827506d837afe0cf69a1f0847cda3c6e0.tar.xz
(svn r4692) - Use DEBUG() instead of direct fprintf in extmidi music driver, and silence 'set volume not implemented' warning at the default debug level.
Diffstat (limited to 'music/extmidi.c')
-rw-r--r--music/extmidi.c5
1 files changed, 3 insertions, 2 deletions
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 <fcntl.h>
#include <sys/types.h>
@@ -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: