AudioBufferSourceNode class

An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.

MDN Reference

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

AudioBufferSourceNode(BaseAudioContext context, [AudioBufferSourceOptions? options])
factory

Properties

addEventListener → ({void Function<K$>(AudioScheduledSourceNodeEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

Overload accessor: $1, $2
no setter
addEventListener → ({void Function<K$>(AudioScheduledSourceNodeEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension

Overload accessor: $1, $2
no setter
addEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
buffer AudioBuffer?

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

MDN Reference
getter/setter pair
channelCount num

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
getter/setter pair
channelCountMode ChannelCountMode

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
getter/setter pair
channelInterpretation ChannelInterpretation

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
getter/setter pair
connect → ({void Function(AudioParam destinationParam, [num? output]) $1, AudioNode Function(AudioNode destinationNode, [num? output, num? input]) $2})

Available on AudioNode, provided by the AudioNode$Typings extension

Overload accessor: $1, $2
no setter
context BaseAudioContext

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
no setter
detune AudioParam

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

MDN Reference
no setter
disconnect → ({void Function() $1, void Function(num output) $2, void Function(AudioNode destinationNode) $3, void Function(AudioParam destinationParam) $4, void Function(AudioNode destinationNode, num output) $5, void Function(AudioParam destinationParam, num output) $6, void Function(AudioNode destinationNode, num output, num input) $7})

Available on AudioNode, provided by the AudioNode$Typings extension

Overload accessor: $1, $2, $3, $4, $5, $6, $7
no setter
dispatchEvent bool Function(Event)

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loop bool

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

MDN Reference
getter/setter pair
loopEnd num

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

MDN Reference
getter/setter pair
loopStart num

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

MDN Reference
getter/setter pair
numberOfInputs num

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
no setter
numberOfOutputs num

Available on AudioNode, provided by the AudioNode$Typings extension

MDN Reference
no setter
onended ↔ dynamic Function(Event)?

Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension

MDN Reference
getter/setter pair
playbackRate AudioParam

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

MDN Reference
no setter
removeEventListener → ({void Function<K$>(AudioScheduledSourceNodeEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

Overload accessor: $1, $2
no setter
removeEventListener → ({void Function<K$>(AudioScheduledSourceNodeEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})

Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension

Overload accessor: $1, $2
no setter
removeEventListener ↔ void Function(String, [Object?, Object?])

Available on EventTarget, provided by the EventTarget$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start ↔ void Function([num?, num?, num?])

Available on AudioBufferSourceNode, provided by the AudioBufferSourceNode$Typings extension

getter/setter pair
start ↔ void Function([num?])

Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension

getter/setter pair
stop ↔ void Function([num?])

Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension

getter/setter pair

Methods

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