Interface ToneBufferSourceOptions

interface ToneBufferSourceOptions {
    context: BaseContext;
    curve: OneShotSourceCurve;
    fadeIn: Unit.Time;
    fadeOut: Unit.Time;
    loop: boolean;
    loopEnd: Unit.Time;
    loopStart: Unit.Time;
    onended: onEndedCallback;
    onerror: ((error) => void);
    onload: (() => void);
    playbackRate: number;
    url: string | AudioBuffer | ToneAudioBuffer;
}

Hierarchy

  • OneShotSourceOptions
    • ToneBufferSourceOptions

Properties

context: BaseContext
curve: OneShotSourceCurve
fadeIn: Unit.Time
fadeOut: Unit.Time
loop: boolean
loopEnd: Unit.Time
loopStart: Unit.Time
onended: onEndedCallback
onerror: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: Error

      Returns void

onload: (() => void)

Type declaration

    • (): void
    • Returns void

playbackRate: number
url: string | AudioBuffer | ToneAudioBuffer