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);
Control random pitch variation
Moderator: GZDoom Developers
-
- Posts: 379
- Joined: Sun Nov 14, 2004 1:29 am
- Location: Illinois
-
-
- Posts: 26975
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
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]
[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]
-
- Posts: 379
- Joined: Sun Nov 14, 2004 1:29 am
- Location: Illinois
-
- Posts: 11351
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom