Garry's Mod Wiki

SoundData

Description

Table used in sound.Add and sound.GetProperties.

Parameters

number channel
The sound channel to play in. See Enums/CHAN
string name
The name of the sound.
number pitchstart
The initial pitch.

Deprecated, use pitch.
number pitchend
The pitch end.

Deprecated, use pitch.
number level
The soundlevel of the sound in dB. See Enums/SNDLVL.
string sound
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).
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.

Warning: Volume of 0 will act as volume of 1

Default: 1.0

number pitch
The pitch of the sound. Can be a table of two numbers, a minimum and a maximum value.

Default: 100