Skip to content

PlayOptions

Options for audio.play.

optional loop?: boolean


optional music?: boolean

Plays on the music channel (audio.musicVolume) instead of the sound channel (audio.soundVolume).


optional pan?: number

Stereo position from -1 (left) to 1 (right). Default 0, the center.


optional rate?: number

Playback rate; also shifts pitch.


optional volume?: number

Gain multiplier, 1 = as recorded.