package js.html.audio
extends EventTarget
extended by OfflineAudioContext
Available on jsAn
AudioContextcan be a target of events, therefore it implements theEventTargetinterface.Documentation AudioContext by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
new (audioChannelType:AudioChannel)new ()Throws:
null |
DOMError |
|---|
read only currentTime:FloatReturns a double representing an ever-increasing hardware time in seconds used for scheduling. It starts at 0.
read only destination:AudioDestinationNodeReturns an AudioDestinationNode representing the final destination of all audio in the context. It can be thought of as the audio-rendering device.
read only listener:AudioListenerReturns the AudioListener object, used for 3D spatialization.
onstatechange:FunctionAn event handler that runs when an event of type statechange has fired. This occurs when the AudioContext's state changes, due to the calling of one of the state change methods (AudioContext.suspend, AudioContext.resume, or AudioContext.close).
read only sampleRate:FloatReturns a float representing the sample rate (in samples per second) used by all nodes in this context. The sample-rate of an AudioContext cannot be changed.
read only state:AudioContextStateReturns the current state of the AudioContext.
close ():Promise<Void>Throws:
null |
DOMError |
|---|
createAnalyser ():AnalyserNodeThrows:
null |
DOMError |
|---|
createBiquadFilter ():BiquadFilterNodeThrows:
null |
DOMError |
|---|
createBuffer (numberOfChannels:Int, length:Int, sampleRate:Float):AudioBufferThrows:
null |
DOMError |
|---|
createBufferSource ():AudioBufferSourceNodeThrows:
null |
DOMError |
|---|
createChannelMerger (numberOfInputs:Int = 6):ChannelMergerNodeThrows:
null |
DOMError |
|---|
createChannelSplitter (numberOfOutputs:Int = 6):ChannelSplitterNodeThrows:
null |
DOMError |
|---|
createConvolver ():ConvolverNodeThrows:
null |
DOMError |
|---|
createDelay (maxDelayTime:Float = 1.0):DelayNodeThrows:
null |
DOMError |
|---|
createDynamicsCompressor ():DynamicsCompressorNodeThrows:
null |
DOMError |
|---|
createGain ():GainNodeThrows:
null |
DOMError |
|---|
createMediaElementSource (mediaElement:MediaElement):MediaElementAudioSourceNodeThrows:
null |
DOMError |
|---|
createMediaStreamDestination ():MediaStreamAudioDestinationNodeThrows:
null |
DOMError |
|---|
createMediaStreamSource (mediaStream:MediaStream):MediaStreamAudioSourceNodeThrows:
null |
DOMError |
|---|
createOscillator ():OscillatorNodeThrows:
null |
DOMError |
|---|
createPanner ():PannerNodeThrows:
null |
DOMError |
|---|
createPeriodicWave (real:Float32Array, imag:Float32Array):PeriodicWaveThrows:
null |
DOMError |
|---|
createScriptProcessor (bufferSize:Int = 0, numberOfInputChannels:Int = 2, numberOfOutputChannels:Int = 2):ScriptProcessorNodeThrows:
null |
DOMError |
|---|
createStereoPanner ():StereoPannerNodeThrows:
null |
DOMError |
|---|
createWaveShaper ():WaveShaperNodeThrows:
null |
DOMError |
|---|
decodeAudioData (audioData:ArrayBuffer, ?successCallback:AudioBuffer ‑> Void, ?errorCallback:Void ‑> Void):Promise<AudioBuffer>Throws:
null |
DOMError |
|---|
resume ():Promise<Void>Throws:
null |
DOMError |
|---|
suspend ():Promise<Void>Throws:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/audio/AudioContext.html