AudioContext
package js.html.audio
extends BaseAudioContext › EventTarget
Available on js
The AudioContext
interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode
.
Documentation AudioContext by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
new(?contextOptions:Null<AudioContextOptions>)
Throws:
null |
DOMError |
---|
Methods
close():Promise<Void>
Closes the audio context, releasing any system audio resources that it uses.
Throws:
null |
DOMError |
---|
createMediaElementSource(mediaElement:MediaElement):MediaElementAudioSourceNode
Creates a MediaElementAudioSourceNode
associated with an HTMLMediaElement
. This can be used to play and manipulate audio from video
or audio
elements.
Throws:
null |
DOMError |
---|
createMediaStreamDestination():MediaStreamAudioDestinationNode
Creates a MediaStreamAudioDestinationNode
associated with a MediaStream
representing an audio stream which may be stored in a local file or sent to another computer.
Throws:
null |
DOMError |
---|
createMediaStreamSource(mediaStream:MediaStream):MediaStreamAudioSourceNode
Creates a MediaStreamAudioSourceNode
associated with a MediaStream
representing an audio stream which may come from the local computer microphone or other sources.
Throws:
null |
DOMError |
---|
suspend():Promise<Void>
Suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process.
Throws:
null |
DOMError |
---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/audio/AudioContext.html