Merge branch 'gme-spc-fix' into 'next'

Fix SPC looping on libgme versions >= 0.6.3

See merge request STJr/SRB2!1302
This commit is contained in:
James R 2020-12-15 20:40:10 -05:00
commit 503364f5f8
1 changed files with 4 additions and 0 deletions

View File

@ -1298,6 +1298,10 @@ boolean I_PlaySong(boolean looping)
if (gme)
{
gme_equalizer_t eq = {GME_TREBLE, GME_BASS, 0,0,0,0,0,0,0,0};
#if GME_VERSION >= 0x000603
if (looping)
gme_set_autoload_playback_limit(gme, 0);
#endif
gme_set_equalizer(gme, &eq);
gme_start_track(gme, 0);
current_track = 0;