Revision Difference
Structures/SoundData#517076
<cat>struct</cat>
<structure>
<description>Table used in <page>sound.Add</page> and <page>sound.GetProperties</page>.</description>
<fields>
<item name="channel" type="number">The sound channel to play in. See <page>CHAN</page></item>
<item name="name" type="string">The name of the sound.</item>
<item name="pitchend" type="number">The pitch end. Deprecated, use pitch.</item>
<item name="pitchstart" type="number">The initial pitch. Deprecated, use pitch.</item>
<item name="level" type="number">The soundlevel of the sound in dB. See <page>SNDLVL</page>.</item>
<item name="sound" type="string">The sound file to be used in this sound effect. Can be a table of sound files. Relative to "sound" directory (must be in a subfolder, so sound/test.wav will not work).</item>
{{StructureField|number|volume|The volume of the sound as a decimal between 0 and 1. Can be a table of two numbers, a minimum and a maximum value.|1.0⤶
<item name="volume" type="number" default="1.0">The volume of the sound as a decimal between 0 and 1. Can be a table of two numbers, a minimum and a maximum value.</item>⤶
<item name="pitch" type="number" default="100">The pitch of the sound. Can be a table of two numbers, a minimum and a maximum value.</item>⤶
</fields>
</structure>
{{StructureField|number|pitch|The pitch of the sound. Can be a table of two numbers, a minimum and a maximum value.|100}}⤶
}}