Looping not working on some Apogee IMF
Brought to you by:
dynamite
When playing the some Apogee IMF songs in Bio Menace (apogfanf.imf in attahment), Major Stryker (APOGFNF1.IMF, SEG3.IMF in attahment) inside XMPlay, there is no looping after reaching the end of song even when the player is set to 'Always loop'.
Apogee.7z
The problem here is that both files end with a long delay (4 sec in the case of apogfnf1.imf) and the way AdPlug calculates it effectively rounds it down to zero (or a really large number, I can't really tell), causing the song pointer to stop advancing once it reaches the delay. AdPlay also refuses to loop on these songs.
I'm not sure whether the best fix is to put a maximum delay length in the IMF player (only fixing IMF files) or to change the algorithm in all the players.