Interface SoundOptions

For configuring Sounds in a scene

SoundOptions

interface SoundOptions {
    loop?: boolean;
    playbackRate?: number;
    source: string;
    volume?: number;
}

Hierarchy (view full)

Properties

loop?: boolean

Set to true to loop the sound, default is false

playbackRate?: number

The playback rate of the sound, default is 1

source: string

The source of the sound (eg: "sound.mp3")

volume?: number

The volume of the sound, default is 1

Generated using TypeDoc