foo-webview-sdk
    Preparing search index...

    Interface AudioGetWaveformParams

    Parameters for audio.getWaveform. Return the most recent duration seconds of the visualization stream, ending at its current time (streamTime in spectrum frames). Needs a spectrum subscription.

    interface AudioGetWaveformParams {
        channels?: "mix" | "stereo";
        duration?: number;
        points?: number;
        signed?: boolean;
    }
    Index
    channels?: "mix" | "stereo"

    mix averages the channels into waveform; stereo returns the first two channels as left and right.

    "mix"
    
    duration?: number

    Window length in seconds, greater than 0.

    0.05
    
    points?: number

    Thin the window to this many evenly spaced samples, without averaging; every sample is returned when omitted.

    signed?: boolean

    When true, preserves bipolar PCM waveform clamped to [-1, 1]; when false, maps magnitude from -70..0 dB to [0, 1].

    false