SNDCURVE

From DoomWiki.org

SNDCURVE is a WAD lump first introduced in Heretic and also used in Hexen. This lump is used by the source code to set how sounds fade with distance.

Description[edit]

SNDCURVE lump is a byte array. In Heretic it is a 40x40 table (1600 bytes), and in Hexen it is a 45x45 table (2025 bytes). Two adjacent bytes indicate a difference of one map unit of distance. The further away the byte is in the array, the further away the sound source is.

In Heretic and Hexen source code, SNDCURVE lump handling is specified in the I_IBM.C file.

Use in source ports[edit]

Under construction icon-yellow.svgThis article or section is a stub. Please help the Doom Wiki by adding to it.

In the ZDoom family of source ports, the byte array in SNDCURVE does not have to be square.

External links[edit]