Options
All
  • Public
  • Public/Protected
  • All
Menu

The parent class of all source audio stream processors.

Note: AudioProcessor inherits from AudioWorkletProcessor and is only available in audio worklet processors.

Hierarchy

Index

Constructors

Properties

port: MessagePort

The communication port used for messaging between the processor and the main thread.

parameterDescriptors?: { automationRate?: "a-rate" | "k-rate"; defaultValue?: number; maxValue?: number; minValue?: number; name: string }[]

Methods

  • onInit(): void
  • Callback triggered during the initialization of the processor.

    Returns void

  • onUninit(): void
  • Callback triggered during the uninitialization of the processor.

    Returns void

  • process(inputs: Float32Array[][], outputs: Float32Array[][], parameters: Record<string, Float32Array>): boolean
  • Parameters

    • inputs: Float32Array[][]
    • outputs: Float32Array[][]
    • parameters: Record<string, Float32Array>

    Returns boolean