Home

SoundDefinition

Type

struct | FileName

Properties

filename

Supported sound file formats are .ogg (Vorbis and Opus) and .wav.

volume

This sets both min and max volumes.

Must be >= 0.

min_volume

Only loaded if volume is not defined.

Must be >= 0.

max_volume

Only loaded if min_volume is defined.

Must be >= min_volume.

preload

speed

Speed must be >= 1 / 64. This sets both min and max speeds.

min_speed

Only loaded if speed is not defined.

Must be >= 1 / 64.

max_speed

Only loaded, and mandatory, if min_speed is defined.

Must be >= min_speed.

modifiers