Tone.js
    Preparing search index...

    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: Error) => void;
        onload: () => void;
        onstop: onStopCallback;
        playbackRate: number;
        reverse: boolean;
        url?: string | AudioBuffer | ToneAudioBuffer;
        volume: number;
    }

    Hierarchy

    • SourceOptions
      • PlayerOptions
    Index

    Properties

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