mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
S_SoundTestPlay: Set MINIMUM looping of ~4 seconds, for the sake the extremely short votepick song.
This commit is contained in:
parent
1f48d0b4ec
commit
ce6737aa67
1 changed files with 8 additions and 1 deletions
|
|
@ -1665,7 +1665,14 @@ void S_SoundTestPlay(void)
|
||||||
{
|
{
|
||||||
// I'd personally like songs in sequence to last between 3 and 6 minutes.
|
// I'd personally like songs in sequence to last between 3 and 6 minutes.
|
||||||
const UINT32 loopduration = (soundtest.sequencemaxtime - S_GetMusicLoopPoint());
|
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.
|
// Only fade out if we're the last track for this song.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue