interface SoundCreationOptions {
    src: string;
    context: AudioContext;
    singleton: boolean;
    preload: boolean;
    autoplay: boolean;
    autoplayOptions: SoundPlaybackOptions;
}

Properties

src: string

The source URL for the audio file

context: AudioContext

A specific AudioContext to attach the sound to

singleton: boolean

Reuse an existing Sound for this source?

preload: boolean

Begin loading the audio immediately?

autoplay: boolean

Begin playing the audio as soon as it is ready?

autoplayOptions: SoundPlaybackOptions

Options passed to the play method if autoplay is true