Changeset - r3721:bc7989173f88
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-05-02 19:09:49
peter1138@openttd.org
(svn r4692) - Use DEBUG() instead of direct fprintf in extmidi music driver, and silence 'set volume not implemented' warning at the default debug level.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
music/extmidi.c
Show inline comments
 
@@ -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:
0 comments (0 inline, 0 general)