Random Sound looping

Moderator: GZDoom Developers

Post Reply
User avatar
DBThanatos
Posts: 3101
Joined: Fri Apr 14, 2006 3:17 pm
Location: in "the darkness that lurks in our mind"

Random Sound looping

Post by DBThanatos »

If you have a set of sounds like this in SNDINFO:

Code: Select all

$random SuperSound { Sound1 Sound2 Sound3 }
...and you try to loop "SuperSound" in decorate through A_PlaySound, it will pick one of this 3 sounds and loop it. That's how zdoom works now.

The suggestion is to actually have it choosing again between the 3 sounds every time the last selected sound ends.

Perhaps some sort of flag to not break compatibility, or just to have the options? Because I do see that in some cases you might want it to choose one of the sounds and loop only that one.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49247
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Random Sound looping

Post by Graf Zahl »

Nice to have, sure, but not really doable with how the sound system works internally.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”