Class AudioProcessorNode
java.lang.Object
com.codename1.media.audio.AudioNode
com.codename1.media.audio.AudioProcessorNode
Runs an AudioProcessor in the graph, the Web Audio AudioWorkletNode.
Created by BaseAudioContext.createAudioProcessor(AudioProcessor, int, int, int[], AudioParamDescriptor[]). 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.
-
Method Summary
Modifier and TypeMethodDescriptiongetParameter(String name) A declared parameter by name.String[]The names of the declared parameters, in declaration order.booleanisFailed()Whether the processor threw and was stopped.voidSets what runs on the EDT when the processor throws.Methods inherited from class AudioNode
connect, connect, connect, connect, disconnect, disconnect, disconnect, disconnect, disconnect, getChannelCount, getChannelCountMode, getChannelInterpretation, getContext, getNumberOfInputs, getNumberOfOutputs, setChannelCount, setChannelCountMode, setChannelInterpretation
-
Method Details
-
getParameter
A declared parameter by name.
Parameters
name: the descriptor's name
Returns
the parameter, or null when no descriptor has that name
-
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
Sets what runs on the EDT when the processor throws.
Parameters
r: the handler, or null
-