ref: f1fa7faf566e3e325c1b1fbf8ace8d5ac2db2b1e
parent: a8e8763cba49db50e4a9dc7198c6e4b6dcfbcbfe
author: Julia Nechaevskaya <[email protected]>
date: Thu Feb 20 16:07:28 EST 2020
Fix GUS emulation with Midiproc.exe (#1253) * Fix GUS emulation with Midiproc.exe * Fix GUS emulation with Midiproc.exe
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -216,7 +216,11 @@
#if defined(_WIN32)
// [AM] Start up midiproc to handle playing MIDI music.
- I_MidiPipe_InitServer();
+ // Don't enable it for GUS, since it handles its own volume just fine.
+ if (snd_musicdevice != SNDDEVICE_GUS)
+ {
+ I_MidiPipe_InitServer();
+ }
#endif
return music_initialized;