WAScheduledSourceNode class abstract
Base class for source nodes with scheduled start/stop behavior. Mirrors Web Audio API AudioScheduledSourceNode.
- Inheritance
- Implementers
Constructors
- WAScheduledSourceNode({required int nodeId, required int contextId, int channelCount = 2, WAChannelCountMode channelCountMode = WAChannelCountMode.max, WAChannelInterpretation channelInterpretation = WAChannelInterpretation.speakers})
- Creates a scheduled source node base.
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 setterinherited
- numberOfOutputs → int
-
Number of outputs this node produces.
no setterinherited
- onEnded ↔ void Function()?
-
Callback invoked when the source has ended.
getter/setter pair
- 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 -
disconnect(
[WANode? destination]) → void -
Disconnect this node from all destinations, or from a specific
destination.inherited -
dispose(
) → void -
Free this node's native resources.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
[double when = 0]) → void -
Start playback/generation at
when(seconds, context timeline). -
stop(
[double when = 0]) → void -
Stop playback/generation at
when(seconds, context timeline). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited