Interface AudioPlayerOptions

interface AudioPlayerOptions {
    action: AudioPlayerAction;
    audioSource: HTMLAudioElement;
    fixedToTimeScale: boolean;
    loop: boolean;
    volume: number;
}

Properties

The action to perform with the audio source.

audioSource: HTMLAudioElement

The audio source to play.

fixedToTimeScale: boolean

TRUE If the playback rate is fixed to the TimeManager time scale, default FALSE

loop: boolean

TRUE If the audio source should loop.

volume: number

The volume of the audio source.