SoundData Structure

From Garry's Mod
Jump to: navigation, search
Table used in sound.Add and sound.GetProperties.



Type Name Description
number channel

The sound channel to play in. See CHAN_ Enums

string name

The name of the sound.

number pitchend

The pitch end. Deprecated, use pitch.

number pitchstart

The initial pitch. Deprecated, use pitch.

number level

The soundlevel of the sound in dB. See SNDLVL_ Enums.

string sound

The sound file to be used in this sound effect. Can be a table of sound files. Relative to "sound" directory.

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.

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

Personal tools
Navigation