| Main Page | Recent changes | Edit this page | Page history Printable version | Disclaimers | Privacy policy | Not logged in Log in | Help

# Definesound

From EDukeWiki

Categories: Duke3D 1.3/1.5 commands | Sound manipulation

definesound <value> <filename> <pitch1> <pitch2> <priority> <type> <volume>

The definesound command defines a sound and assigns various properties to it.

- <value>: This can be either the sound's number or the name that has been defined for that number.
- <filename>: The name of the sound file. Sound files are assumed to be in the same directory as the program unless a folder path is specified.
- <pitch1> and <pitch2>: According to the comments in the default user.con, these are a "random pitch variation range." Values may be positive or negative.
- <priority>: A value of 0 to 255 indicates the priority the sound has over other sounds that are playing simultaneously. The higher the value, the greater its priority. This is due to the limit on the number of sounds that can play at once. 32 is the maximum limit, and can be set lower as the user chooses.
- <type>: This flag indicates what type of sound you are defining and can be added together much the way cstat values are:

  1 Repeat
  2 Used for Music&SFX sprites
  4 Duke voice
  8 Disabled when Parental Lock is on
  16 Global sound

- <volume>: Negative values increase volume; positive ones soften it. Can range from -32768 to 32768.

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../d/e/f/Definesound.html"

This page has been accessed 263 times. This page was last modified 16:05, 24 September 2005 by Richard Gobeille. Based on work by EDukeWiki user(s) Usurper. Content is available under SourceForge.

Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports