S_SoundTestPlay: Set MINIMUM looping of ~4 seconds, for the sake the extremely short votepick song.

This commit is contained in:
toaster 2023-06-03 15:41:52 +01:00
parent 1f48d0b4ec
commit ce6737aa67

View file

@ -1665,7 +1665,14 @@ void S_SoundTestPlay(void)
{
// I'd personally like songs in sequence to last between 3 and 6 minutes.
const UINT32 loopduration = (soundtest.sequencemaxtime - S_GetMusicLoopPoint());
soundtest.sequencemaxtime += loopduration;
if (!loopduration)
;
else do
{
soundtest.sequencemaxtime += loopduration;
} while (soundtest.sequencemaxtime < 4*1000);
// If the track is EXTREMELY short, keep adding until about 4s!
}
// Only fade out if we're the last track for this song.