fix gme music not looping

This commit is contained in:
Alug 2025-11-13 23:24:27 +01:00
parent 3d607448ee
commit d840ae9c41

View file

@ -1218,6 +1218,7 @@ static boolean InitializeMusicStreaming(void *input, size_t size)
// Run GME on new data
if (!gme_open_data(inflatedData, inflatedLen, &gme, SAMPLERATE))
{
gme_set_autoload_playback_limit(gme, 0); //FIXME: add something to set if gme playback should loop
gme_equalizer_t eq = {GME_TREBLE, GME_BASS, 0,0,0,0,0,0,0,0};
gme_set_equalizer(gme, &eq);
gme_start_track(gme, 0);
@ -1246,6 +1247,7 @@ static boolean InitializeMusicStreaming(void *input, size_t size)
// Try to read it as a GME sound
else if (!gme_open_data(input, size, &gme, SAMPLERATE))
{
gme_set_autoload_playback_limit(gme, 0); //FIXME: add something to set if gme playback should loop
gme_equalizer_t eq = {GME_TREBLE, GME_BASS, 0,0,0,0,0,0,0,0};
gme_set_equalizer(gme, &eq);
gme_start_track(gme, 0);