MIDI/Windows: Immediately MPU_Init after MPU_Reset so that MIDI_Reset can take effect.

git-svn-id: https://svn.eduke32.com/eduke32@6783 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-03-22 04:48:57 +00:00
parent eee1fd6e2c
commit a3586ffc20

View file

@ -610,6 +610,9 @@ void MIDI_StopSong(void)
_MIDI_SongActive = FALSE;
_MIDI_SongLoaded = FALSE;
MPU_Reset();
MPU_Init(MUSIC_SoundDevice);
MIDI_Reset();
_MIDI_ResetTracks();
@ -623,7 +626,6 @@ void MIDI_StopSong(void)
_MIDI_TotalBeats = 0;
_MIDI_TotalMeasures = 0;
MPU_Reset();
}
int32_t MIDI_PlaySong(char *song, int32_t loopflag)