Hierarchy

Constructors

Properties

subscriptions: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

wavesurfer?: default

Methods

  • Do not call directly, only called by WavesSurfer internally

    Parameters

    Returns void

  • Parameters

    • fftPoints: any
    • melFilterBank: any

    Returns any[]

  • Parameters

    • numMelFilters: any
    • sampleRate: any

    Returns any[][]

  • Emit an event

    Type Parameters

    • EventName extends "click" | "ready" | "destroy"

    Parameters

    Returns void

  • Parameters

    • bgFill: any
    • fontSizeFreq: any
    • fontSizeUnit: any
    • fontType: any
    • textColorFreq: any
    • textColorUnit: any
    • textAlign: any
    • container: any
    • channels: any

    Returns void

  • Subscribe to an event. Returns an unsubscribe function.

    Type Parameters

    • EventName extends "click" | "ready" | "destroy"

    Parameters

    • event: EventName
    • listener: EventListener<SpectrogramPluginEvents, EventName>
    • Optional options: {
          once?: boolean;
      }
      • Optional once?: boolean

    Returns (() => void)

      • (): void
      • Subscribe to an event. Returns an unsubscribe function.

        Returns void

  • Subscribe to an event only once

    Type Parameters

    • EventName extends "click" | "ready" | "destroy"

    Parameters

    Returns (() => void)

      • (): void
      • Subscribe to an event only once

        Returns void

  • Unsubscribe from an event

    Type Parameters

    • EventName extends "click" | "ready" | "destroy"

    Parameters

    Returns void

  • Clear all events

    Returns void

Generated using TypeDoc