AudioBuffer class

A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode.

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

AudioBuffer.new(AudioBufferOptions options)
factory

Properties

copyFromChannel ↔ void Function(Float32List, num, [num?])

Available on AudioBuffer, provided by the AudioBuffer$Typings extension

getter/setter pair
copyToChannel ↔ void Function(Float32List, num, [num?])

Available on AudioBuffer, provided by the AudioBuffer$Typings extension

getter/setter pair
duration num

Available on AudioBuffer, provided by the AudioBuffer$Typings extension

MDN Reference
no setter
getChannelData Float32List Function(num)

Available on AudioBuffer, provided by the AudioBuffer$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
length num

Available on AudioBuffer, provided by the AudioBuffer$Typings extension

MDN Reference
no setter
numberOfChannels num

Available on AudioBuffer, provided by the AudioBuffer$Typings extension

MDN Reference
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate num

Available on AudioBuffer, provided by the AudioBuffer$Typings extension

MDN Reference
no setter

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