Interface PlayersOptions

interface PlayersOptions {
    baseUrl: string;
    context: BaseContext;
    fadeIn: Unit.Time;
    fadeOut: Unit.Time;
    mute: boolean;
    onerror: ((error) => void);
    onload: (() => void);
    onstop: onStopCallback;
    urls: ToneAudioBuffersUrlMap;
    volume: number;
}

Hierarchy

  • SourceOptions
    • PlayersOptions

Properties

baseUrl: string
context: BaseContext
fadeIn: Unit.Time
fadeOut: 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
volume: number