AudioContext class

Inheritance
Implemented by
Annotations
  • @DomName('AudioContext')
  • @SupportedBrowser(SupportedBrowser.CHROME)
  • @SupportedBrowser(SupportedBrowser.FIREFOX)
  • @Experimental()

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only
supportedbool
read-only

Checks if this type is supported on the current platform.

Constructors

AudioContext()
factory
AudioContext.internal_()

Properties

currentTimenum
@DocsEditable(), @DomName('AudioContext.currentTime'), read-only
destinationAudioDestinationNode
@DocsEditable(), @DomName('AudioContext.destination'), read-only
listenerAudioListener
@DocsEditable(), @DomName('AudioContext.listener'), read-only
sampleRatenum
@DocsEditable(), @DomName('AudioContext.sampleRate'), read-only
stateString
@DocsEditable(), @DomName('AudioContext.state'), @Experimental(), read-only
hashCodeint
read-only, inherited
onEvents
read-only, inherited

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

close() → Future
@DocsEditable(), @DomName('AudioContext.close'), @Experimental()
createAnalyser() → AnalyserNode
@DocsEditable(), @DomName('AudioContext.createAnalyser')
createBiquadFilter() → BiquadFilterNode
@DocsEditable(), @DomName('AudioContext.createBiquadFilter')
createBuffer(int numberOfChannels, int numberOfFrames, num sampleRate) → AudioBuffer
@DocsEditable(), @DomName('AudioContext.createBuffer')
createBufferSource() → AudioBufferSourceNode
@DocsEditable(), @DomName('AudioContext.createBufferSource')
createChannelMerger([int numberOfInputs ]) → ChannelMergerNode
createChannelSplitter([int numberOfOutputs ]) → ChannelSplitterNode
createConvolver() → ConvolverNode
@DocsEditable(), @DomName('AudioContext.createConvolver')
createDelay([num maxDelayTime ]) → DelayNode
createDynamicsCompressor() → DynamicsCompressorNode
@DocsEditable(), @DomName('AudioContext.createDynamicsCompressor')
createGain() → GainNode
@DocsEditable(), @DomName('AudioContext.createGain')
createIirFilter(List<num> feedForward, List<num> feedBack) → IirFilterNode
@DocsEditable(), @DomName('AudioContext.createIIRFilter'), @Experimental()
createMediaElementSource(MediaElement mediaElement) → MediaElementAudioSourceNode
@DocsEditable(), @DomName('AudioContext.createMediaElementSource')
createMediaStreamDestination() → MediaStreamAudioDestinationNode
@DocsEditable(), @DomName('AudioContext.createMediaStreamDestination')
createMediaStreamSource(MediaStream mediaStream) → MediaStreamAudioSourceNode
@DocsEditable(), @DomName('AudioContext.createMediaStreamSource')
createOscillator() → OscillatorNode
@DocsEditable(), @DomName('AudioContext.createOscillator')
createPanner() → PannerNode
@DocsEditable(), @DomName('AudioContext.createPanner')
createPeriodicWave(Float32List real, Float32List imag, [ Map options ]) → PeriodicWave
createScriptProcessor([int bufferSize, int numberOfInputChannels, int numberOfOutputChannels ]) → ScriptProcessorNode
createStereoPanner() → StereoPannerNode
@DocsEditable(), @DomName('AudioContext.createStereoPanner'), @Experimental()
createWaveShaper() → WaveShaperNode
@DocsEditable(), @DomName('AudioContext.createWaveShaper')
decodeAudioData(ByteBuffer audioData, [ AudioBufferCallback successCallback, AudioBufferCallback errorCallback ]) → Future<AudioBuffer>
@DomName('AudioContext.decodeAudioData')
resume() → Future
@DocsEditable(), @DomName('AudioContext.resume'), @Experimental()
suspend() → Future
@DocsEditable(), @DomName('AudioContext.suspend'), @Experimental()
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-web_audio/AudioContext-class.html