mirror of https://github.com/OpenTTD/OpenTTD
(svn r50) -Fix hopefully the win98 crashes related to music/sound (orudge)
parent
15d60c09f5
commit
b7e14169f8
6
w32dm.c
6
w32dm.c
|
@ -62,8 +62,10 @@ bool seeking = false;
|
||||||
|
|
||||||
static char * DMusicMidiStart(char **parm)
|
static char * DMusicMidiStart(char **parm)
|
||||||
{
|
{
|
||||||
InitDirectMusic();
|
if (InitDirectMusic() == true)
|
||||||
return 0;
|
return(0);
|
||||||
|
else
|
||||||
|
return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DMusicMidiStop()
|
static void DMusicMidiStop()
|
||||||
|
|
4
win32.c
4
win32.c
|
@ -1774,10 +1774,10 @@ const DriverDesc _sound_driver_descs[] = {
|
||||||
|
|
||||||
const DriverDesc _music_driver_descs[] = {
|
const DriverDesc _music_driver_descs[] = {
|
||||||
{"null", "Null Music Driver", &_null_music_driver, 0},
|
{"null", "Null Music Driver", &_null_music_driver, 0},
|
||||||
{"win32", "Win32 MIDI Driver", &_win32_music_driver, 1},
|
|
||||||
#ifdef WIN32_ENABLE_DIRECTMUSIC_SUPPORT
|
#ifdef WIN32_ENABLE_DIRECTMUSIC_SUPPORT
|
||||||
{"dmusic", "DirectMusic MIDI Driver", &_dmusic_midi_driver, 2},
|
{"dmusic", "DirectMusic MIDI Driver", &_dmusic_midi_driver, 1},
|
||||||
#endif
|
#endif
|
||||||
|
{"win32", "Win32 MIDI Driver", &_win32_music_driver, 2},
|
||||||
{NULL}
|
{NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue