Interface PlayerOptions

interface PlayerOptions {
    autostart: boolean;
    context: BaseContext;
    fadeIn: Unit.Time;
    fadeOut: Unit.Time;
    loop: boolean;
    loopEnd: Unit.Time;
    loopStart: Unit.Time;
    mute: boolean;
    onerror: ((error) => void);
    onload: (() => void);
    onstop: onStopCallback;
    playbackRate: number;
    reverse: boolean;
    url?: string | AudioBuffer | ToneAudioBuffer;
    volume: number;
}

Hierarchy

  • SourceOptions
    • PlayerOptions

Properties

autostart: boolean
context: BaseContext
fadeIn: Unit.Time
fadeOut: Unit.Time
loop: boolean
loopEnd: Unit.Time
loopStart: Unit.Time
mute: boolean
onerror: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: Error

      Returns void

onload: (() => void)

Type declaration

    • (): void
    • Returns void

onstop: onStopCallback
playbackRate: number
reverse: boolean
url?: string | AudioBuffer | ToneAudioBuffer
volume: number