WAWorkletNode class
An AudioWorkletNode — connects a custom processor to the audio graph. Mirrors Web Audio API AudioWorkletNode.
final dx7 = WAWorkletNode(
ctx,
'dx7-processor',
parameterDefaults: {'gain': 0.8},
);
dx7.connect(ctx.destination);
dx7.port.postMessage({'type': 'noteOn', 'note': 60});
Constructors
Properties
- channelCount ↔ int
-
The number of channels used by this node.
getter/setter pairinherited
- channelCountMode ↔ WAChannelCountMode
-
How channels are mapped when connecting nodes.
getter/setter pairinherited
- channelInterpretation ↔ WAChannelInterpretation
-
How to interpret channels (speakers vs discrete).
getter/setter pairinherited
- contextId → int
-
Internal context ID.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nodeId → int
-
Internal node ID used by the backend.
no setterinherited
- numberOfInputs → int
-
Number of inputs this node accepts.
no setteroverride
- numberOfOutputs → int
-
Number of outputs this node produces.
no setteroverride
- parameters ↔ WAAudioParamMap
-
Worklet parameter map (minimal parity for AudioParamMap).
latefinal
- port ↔ WAMessagePort
-
The message port for bidirectional communication with the processor.
latefinal
- processorName → String
-
The name of the registered processor.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
WANode destination, {int output = 0, int input = 0}) → WANode -
Connect this node's output to the input of
destination.inherited -
destroy(
) → void - Destroy the processor.
-
disconnect(
[WANode? destination]) → void -
Disconnect this node from all destinations, or from a specific
destination.inherited -
dispose(
) → void -
Free this node's native resources.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited