• Plays a sound from the bank, optionally looping it. If loop is false, this returns a promise that resolves when the sound finishes playing. Otherwise, the promise it returns resolves immediately. If there is an error with playback (e.g. the sound requested doesn't exist in the bank), this throws an error.

    Parameters

    • name: string
    • loop: boolean = false
    • fadeInDuration: number = 0

    Returns Promise<void>

Generated using TypeDoc