Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public final class AudioProcessorNode

  1. Object
  2. AudioNode
  3. AudioProcessorNode

Runs an AudioProcessor in the graph, the Web Audio AudioWorkletNode. Created by BaseAudioContext.createAudioProcessor. Parameters are real AudioParams, automated and modulated like any other.

A processor that throws is stopped: the node outputs silence from then on and setOnProcessorError(Runnable) runs on the EDT, as the worklet’s processorerror event does.

Methods

public AudioParam getParameter(String name)A declared parameter by name.
public String[] getParameterNames()The names of the declared parameters, in declaration order.
public boolean isFailed()Whether the processor threw and was stopped.
public void setOnProcessorError(Runnable r)Sets what runs on the EDT when the processor throws.

Inherited methods

Method details

getParameter

public AudioParam getParameter(String name)
A declared parameter by name.

Parameters

name String
the descriptor’s name

Returns

the parameter, or null when no descriptor has that name

getParameterNames

public String[] getParameterNames()
The names of the declared parameters, in declaration order.

Returns

a new array of names

isFailed

public boolean isFailed()
Whether the processor threw and was stopped.

Returns

true after a failure

setOnProcessorError

public void setOnProcessorError(Runnable r)
Sets what runs on the EDT when the processor throws.

Parameters

r Runnable
the handler, or null