Class AudioWorkletRegister

Constructors

Methods

Constructors

Methods

  • Register a AudioWorklet processor in a closure, sending to AudioWorkletProcessor with an unique identifier avoiding double registration

    Parameters

    • moduleId: string

      if duplicated, the processor will not be readded.

    • processor: ((id, ...injections) => void)

      a serializable function that contains an AudioWorkletProcessor with its registration in the AudioWorkletGlobalScope

        • (id, ...injections): void
        • Parameters

          • id: string
          • Rest ...injections: any[]

          Returns void

    • audioWorklet: AudioWorklet

      AudioWorklet instance

    • Rest ...injection: any[]

      this will be serialized and injected to the processor function

    Returns Promise<void>

    a Promise

Generated using TypeDoc