Control random pitch variation

Moderator: GZDoom Developers

User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois

Control random pitch variation

Post by justin024 »

Normally the random pitch thing is excellent, but there are exceptions. I have a siren sound effect that is played a few times in a row and being a different tone each time makes it sound weird. An optional integer could be added to the end of the ambient sound commands in ACS (for compatibility w/ old wads). If non-zero, the random pitch thing is disabled.

[local]ambientsound(str name, int volume, opt int random pitch off);
User avatar
Enjay
 
 
Posts: 26402
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Post by Enjay »

I can't check the syntax ATM because I'm not at home, but I'm pretty sure there is already a pitchshift (or something like that) variable that can be set on a per-sound basis in sndinfo.

[edit]Just found this

http://forum.zdoom.org/potato.php?t=487 ... pitchshift

http://forum.zdoom.org/potato.php?t=218 ... pitchshift

http://forum.zdoom.org/potato.php?t=156 ... pitchshift

http://forum.zdoom.org/potato.php?t=941 ... pitchshift

[/edit]
User avatar
justin024
Posts: 379
Joined: Sun Nov 14, 2004 1:29 am
Location: Illinois

Post by justin024 »

Sweet, I seem to have forgot about $pitchshiftrange since it's not currently in my sndinfo. Just checked SNDINFO in the wiki.
User avatar
Cutmanmike
Posts: 11253
Joined: Mon Oct 06, 2003 3:41 pm
Discord: https://discord.gg/Whts7Bj
Operating System: Windows Vista/7/2008 64-bit
Location: United Kingdom

Post by Cutmanmike »

After all those threads I made I STILL don't know why it isn't working :(

Return to “Closed Feature Suggestions”