public class BaseAudioContext extends EventTarget
BaseAudioContext
.org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Constructor and Description |
---|
BaseAudioContext() |
Modifier and Type | Method and Description |
---|---|
AudioBuffer |
createBuffer() |
AudioBufferSourceNode |
createBufferSource() |
GainNode |
createGain() |
org.htmlunit.corejs.javascript.NativePromise |
decodeAudioData(org.htmlunit.corejs.javascript.typedarrays.NativeArrayBuffer buffer,
org.htmlunit.corejs.javascript.Function success,
org.htmlunit.corejs.javascript.Function error)
The decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously
decode audio file data contained in an ArrayBuffer.
|
void |
jsConstructor()
Creates an instance.
|
addEventListener, clearEventListenersContainer, dispatchEvent, executeEventLocally, fireEvent, getEventHandler, getEventListenersContainer, hasEventHandlers, isEventHandlerOnWindow, removeEventListener, setEventHandler
clone, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, put, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromise
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, size
public void jsConstructor()
jsConstructor
in class EventTarget
public AudioBufferSourceNode createBufferSource()
public AudioBuffer createBuffer()
public GainNode createGain()
public org.htmlunit.corejs.javascript.NativePromise decodeAudioData(org.htmlunit.corejs.javascript.typedarrays.NativeArrayBuffer buffer, org.htmlunit.corejs.javascript.Function success, org.htmlunit.corejs.javascript.Function error)
buffer
- An ArrayBuffer containing the audio data to be decoded, usually grabbed
from XMLHttpRequest, WindowOrWorkerGlobalScope.fetch() or FileReadersuccess
- A callback function to be invoked when the decoding successfully finishes.
The single argument to this callback is an AudioBuffer representing the decodedData
(the decoded PCM audio data). Usually you'll want to put the decoded data into
an AudioBufferSourceNode, from which it can be played and manipulated how you want.error
- An optional error callback, to be invoked if an error occurs
when the audio data is being decoded.Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.