API

Interface IAbstractSoundPlayOptions

Options for playing a sound.

interface IAbstractSoundPlayOptions {
    loop: boolean;
    startOffset: number;
    volume: number;
}

Hierarchy (View Summary)

Index
loop: boolean

Whether the sound should loop. Defaults to false.

startOffset: number

The time within the sound buffer to start playing at, in seconds. Defaults to 0.

volume: number

The volume/gain. Defaults to 1.