@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="BaseAudioContext")
public class BaseAudioContext
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
onstatechange |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAudioContext() |
| Modifier and Type | Method and Description |
|---|---|
AudioWorklet |
audioWorklet()
The audioWorklet read-only property of the BaseAudioContext interface returns an instance of AudioWorklet that can be used for adding AudioWorkletProcessor-derived classes which implement custom audio processing.
|
AnalyserNode |
createAnalyser()
The createAnalyser() method of the BaseAudioContext interface creates an AnalyserNode, which can be used to expose audio time and frequency data and create data visualisations.
|
BiquadFilterNode |
createBiquadFilter()
A BiquadFilterNode.
|
AudioBuffer |
createBuffer(int numberOfChannels,
int length,
float sampleRate)
An AudioBuffer configured based on the specified options.
|
AudioBufferSourceNode |
createBufferSource()
An AudioBufferSourceNode.
|
ChannelMergerNode |
createChannelMerger()
A ChannelMergerNode.
|
ChannelMergerNode |
createChannelMerger(int numberOfInputs)
A ChannelMergerNode.
|
ChannelSplitterNode |
createChannelSplitter()
A ChannelSplitterNode.
|
ChannelSplitterNode |
createChannelSplitter(int numberOfOutputs)
A ChannelSplitterNode.
|
ConstantSourceNode |
createConstantSource()
The createConstantSource() property of the BaseAudioContext interface creates a ConstantSourceNode object, which is an audio source that continuously outputs a monaural (one-channel) sound signal whose samples all have the same value.
|
ConvolverNode |
createConvolver()
A ConvolverNode.
|
DelayNode |
createDelay()
The createDelay() method of the BaseAudioContext Interface is used to create a DelayNode, which is used to delay the incoming audio signal by a certain amount of time.
|
DelayNode |
createDelay(double maxDelayTime)
The createDelay() method of the BaseAudioContext Interface is used to create a DelayNode, which is used to delay the incoming audio signal by a certain amount of time.
|
DynamicsCompressorNode |
createDynamicsCompressor()
Compression lowers the volume of the loudest parts of the signal and raises the volume of the softest parts.
|
GainNode |
createGain()
A GainNode which takes as input one or more audio sources and outputs audio whose volume has been adjusted in gain (volume) to a level specified by the node's GainNode.gain a-rate parameter.
|
IIRFilterNode |
createIIRFilter(double[] feedforward,
double[] feedback)
The createIIRFilter() method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general infinite impulse response (IIR) filter which can be configured to serve as various types of filter.
|
IIRFilterNode |
createIIRFilter(double[] feedforward,
JsArray<java.lang.Double> feedback)
The createIIRFilter() method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general infinite impulse response (IIR) filter which can be configured to serve as various types of filter.
|
IIRFilterNode |
createIIRFilter(JsArray<java.lang.Double> feedforward,
double[] feedback)
The createIIRFilter() method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general infinite impulse response (IIR) filter which can be configured to serve as various types of filter.
|
IIRFilterNode |
createIIRFilter(JsArray<java.lang.Double> feedforward,
JsArray<java.lang.Double> feedback)
The createIIRFilter() method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general infinite impulse response (IIR) filter which can be configured to serve as various types of filter.
|
OscillatorNode |
createOscillator()
The createOscillator() method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform.
|
PannerNode |
createPanner()
The panner node is spatialized in relation to the AudioContext's AudioListener (defined by the AudioContext.listener attribute), which represents the position and orientation of the person listening to the audio.
|
PeriodicWave |
createPeriodicWave(double[] real,
double[] imag)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
PeriodicWave |
createPeriodicWave(double[] real,
double[] imag,
PeriodicWaveConstraints constraints)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
PeriodicWave |
createPeriodicWave(double[] real,
JsArray<java.lang.Double> imag)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
PeriodicWave |
createPeriodicWave(double[] real,
JsArray<java.lang.Double> imag,
PeriodicWaveConstraints constraints)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
PeriodicWave |
createPeriodicWave(JsArray<java.lang.Double> real,
double[] imag)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
PeriodicWave |
createPeriodicWave(JsArray<java.lang.Double> real,
double[] imag,
PeriodicWaveConstraints constraints)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
PeriodicWave |
createPeriodicWave(JsArray<java.lang.Double> real,
JsArray<java.lang.Double> imag)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
PeriodicWave |
createPeriodicWave(JsArray<java.lang.Double> real,
JsArray<java.lang.Double> imag,
PeriodicWaveConstraints constraints)
The createPeriodicWave() method of the BaseAudioContext Interface is used to create a PeriodicWave, which is used to define a periodic waveform that can be used to shape the output of an OscillatorNode.
|
ScriptProcessorNode |
createScriptProcessor()
A ScriptProcessorNode.
|
ScriptProcessorNode |
createScriptProcessor(int bufferSize)
A ScriptProcessorNode.
|
ScriptProcessorNode |
createScriptProcessor(int bufferSize,
int numberOfInputChannels)
A ScriptProcessorNode.
|
ScriptProcessorNode |
createScriptProcessor(int bufferSize,
int numberOfInputChannels,
int numberOfOutputChannels)
A ScriptProcessorNode.
|
StereoPannerNode |
createStereoPanner()
A StereoPannerNode.
|
WaveShaperNode |
createWaveShaper()
A WaveShaperNode.
|
double |
currentTime()
The currentTime read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc.
|
Promise<AudioBuffer> |
decodeAudioData(ArrayBuffer audioData)
The decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an ArrayBuffer.
|
Promise<AudioBuffer> |
decodeAudioData(ArrayBuffer audioData,
DecodeSuccessCallback successCallback)
The decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an ArrayBuffer.
|
Promise<AudioBuffer> |
decodeAudioData(ArrayBuffer audioData,
DecodeSuccessCallback successCallback,
DecodeErrorCallback errorCallback)
The decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an ArrayBuffer.
|
AudioDestinationNode |
destination()
An AudioDestinationNode.
|
AudioListener |
listener()
An AudioListener object.
|
float |
sampleRate()
The sampleRate property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context.
|
java.lang.String |
state()
A DOMString.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@Nullable public EventHandler onstatechange
@JsProperty(name="audioWorklet") @Nonnull public AudioWorklet audioWorklet()
@JsProperty(name="currentTime") public double currentTime()
@JsProperty(name="destination") @Nonnull public AudioDestinationNode destination()
@JsProperty(name="listener") @Nonnull public AudioListener listener()
@JsProperty(name="sampleRate") public float sampleRate()
@JsProperty(name="state") @Nonnull @AudioContextState public java.lang.String state()
@Nonnull public AnalyserNode createAnalyser()
@Nonnull public BiquadFilterNode createBiquadFilter()
@Nonnull public AudioBuffer createBuffer(int numberOfChannels, int length, float sampleRate)
@Nonnull public AudioBufferSourceNode createBufferSource()
@Nonnull public ChannelMergerNode createChannelMerger(int numberOfInputs)
@Nonnull public ChannelMergerNode createChannelMerger()
@Nonnull public ChannelSplitterNode createChannelSplitter(int numberOfOutputs)
@Nonnull public ChannelSplitterNode createChannelSplitter()
@Nonnull public ConstantSourceNode createConstantSource()
@Nonnull public ConvolverNode createConvolver()
@Nonnull public DelayNode createDelay(double maxDelayTime)
@Nonnull public DelayNode createDelay()
@Nonnull public DynamicsCompressorNode createDynamicsCompressor()
@Nonnull public GainNode createGain()
@Nonnull public IIRFilterNode createIIRFilter(@Nonnull JsArray<java.lang.Double> feedforward, @Nonnull JsArray<java.lang.Double> feedback)
@Nonnull public IIRFilterNode createIIRFilter(@Nonnull double[] feedforward, @Nonnull JsArray<java.lang.Double> feedback)
@Nonnull public IIRFilterNode createIIRFilter(@Nonnull JsArray<java.lang.Double> feedforward, @Nonnull double[] feedback)
@Nonnull public IIRFilterNode createIIRFilter(@Nonnull double[] feedforward, @Nonnull double[] feedback)
@Nonnull public OscillatorNode createOscillator()
@Nonnull public PannerNode createPanner()
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull JsArray<java.lang.Double> real, @Nonnull JsArray<java.lang.Double> imag, @Nonnull PeriodicWaveConstraints constraints)
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull double[] real, @Nonnull JsArray<java.lang.Double> imag, @Nonnull PeriodicWaveConstraints constraints)
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull JsArray<java.lang.Double> real, @Nonnull double[] imag, @Nonnull PeriodicWaveConstraints constraints)
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull double[] real, @Nonnull double[] imag, @Nonnull PeriodicWaveConstraints constraints)
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull JsArray<java.lang.Double> real, @Nonnull JsArray<java.lang.Double> imag)
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull double[] real, @Nonnull JsArray<java.lang.Double> imag)
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull JsArray<java.lang.Double> real, @Nonnull double[] imag)
@Nonnull public PeriodicWave createPeriodicWave(@Nonnull double[] real, @Nonnull double[] imag)
@Nonnull public ScriptProcessorNode createScriptProcessor(int bufferSize, int numberOfInputChannels, int numberOfOutputChannels)
@Nonnull public ScriptProcessorNode createScriptProcessor(int bufferSize, int numberOfInputChannels)
@Nonnull public ScriptProcessorNode createScriptProcessor(int bufferSize)
@Nonnull public ScriptProcessorNode createScriptProcessor()
@Nonnull public StereoPannerNode createStereoPanner()
@Nonnull public WaveShaperNode createWaveShaper()
@Nonnull public Promise<AudioBuffer> decodeAudioData(@Nonnull ArrayBuffer audioData, @Nullable DecodeSuccessCallback successCallback, @Nullable DecodeErrorCallback errorCallback)
@Nonnull public Promise<AudioBuffer> decodeAudioData(@Nonnull ArrayBuffer audioData, @Nullable DecodeSuccessCallback successCallback)
@Nonnull public Promise<AudioBuffer> decodeAudioData(@Nonnull ArrayBuffer audioData)