mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r4692) - Use DEBUG() instead of direct fprintf in extmidi music driver, and silence 'set volume not implemented' warning at the default debug level.
This commit is contained in:
parent
60b3d37dff
commit
9671d6a9eb
@ -6,6 +6,7 @@
|
|||||||
#include "../sound.h"
|
#include "../sound.h"
|
||||||
#include "../string.h"
|
#include "../string.h"
|
||||||
#include "../variables.h"
|
#include "../variables.h"
|
||||||
|
#include "../debug.h"
|
||||||
#include "extmidi.h"
|
#include "extmidi.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -58,7 +59,7 @@ static bool ExtMidiIsPlaying(void)
|
|||||||
|
|
||||||
static void ExtMidiSetVolume(byte vol)
|
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)
|
static void DoPlay(void)
|
||||||
@ -81,7 +82,7 @@ static void DoPlay(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case -1:
|
case -1:
|
||||||
fprintf(stderr, "extmidi: couldn't fork: %s\n", strerror(errno));
|
DEBUG(driver, 0) ("extmidi: couldn't fork: %s", strerror(errno));
|
||||||
/* FALLTHROUGH */
|
/* FALLTHROUGH */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user