AudioScheduledSourceNode class
The interface—part of the Web Audio API—is a parent interface
for several types of audio source node interfaces which share the
ability to be started and stopped, optionally at specified times.
Specifically, this interface defines the start()
and stop()
methods, as well as the onended event handler.
Note: You can't create an object directly. Instead, use the interface which extends it, such as AudioBufferSourceNode, OscillatorNode, and ConstantSourceNode.
Unless stated otherwise, nodes based upon output silence when
not playing (that is, before start()
is called and after
stop()
is called). Silence is represented, as always, by a
stream of samples with the value zero (0).
EventTarget
AudioNode
AudioScheduledSourceNode
- Implemented types
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- AudioScheduledSourceNode()
-
factory
Properties
- channelCount ↔ int
-
Available on AudioNode, provided by the PropsAudioNode extension
getter/setter pair - channelCountMode ↔ ChannelCountMode
-
Available on AudioNode, provided by the PropsAudioNode extension
getter/setter pair - channelInterpretation ↔ ChannelInterpretation
-
Available on AudioNode, provided by the PropsAudioNode extension
getter/setter pair - context → BaseAudioContext
-
Available on AudioNode, provided by the PropsAudioNode extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- numberOfInputs → int
-
Available on AudioNode, provided by the PropsAudioNode extension
no setter - numberOfOutputs → int
-
Available on AudioNode, provided by the PropsAudioNode extension
no setter -
onended
↔ EventHandlerNonNull<
Event> ? -
Available on AudioScheduledSourceNode, provided by the PropsAudioScheduledSourceNode extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
connect(
AudioNode destinationNode, [int? output = 0, int? input = 0]) → AudioNode -
Available on AudioNode, provided by the PropsAudioNode extension
-
disconnect(
[AudioNode? destinationNode, int? output, int? input]) → void -
Available on AudioNode, provided by the PropsAudioNode extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
start(
[double? when = 0]) → void -
Available on AudioScheduledSourceNode, provided by the PropsAudioScheduledSourceNode extension
-
stop(
[double? when = 0]) → void -
Available on AudioScheduledSourceNode, provided by the PropsAudioScheduledSourceNode extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited