@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public class OfflineAudioContext
extends BaseAudioContext
| Modifier and Type | Field and Description |
|---|---|
@JsNullable OfflineAudioCompletionEventHandler |
oncomplete
When processing is complete, you might want to use the oncomplete handler the prompt the user that the audio can now be played, and enable the play button.
|
onstatechange| Constructor and Description |
|---|
OfflineAudioContext(int numberOfChannels,
int length,
float sampleRate)
The OfflineAudioContext() constructor—part of the Web Audio API—creates and returns a new OfflineAudioContext object instance, which can then be used to render audio to an AudioBuffer rather than to an audio output device.
|
OfflineAudioContext(OfflineAudioContextOptions contextOptions)
The OfflineAudioContext() constructor—part of the Web Audio API—creates and returns a new OfflineAudioContext object instance, which can then be used to render audio to an AudioBuffer rather than to an audio output device.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCompleteListener(OfflineAudioCompletionEventListener callback) |
void |
addCompleteListener(OfflineAudioCompletionEventListener callback,
AddEventListenerOptions options) |
void |
addCompleteListener(OfflineAudioCompletionEventListener callback,
boolean useCapture) |
int |
length()
The length property of the OfflineAudioContext interface returns an integer representing the size of the buffer in sample-frames.
|
void |
removeCompleteListener(OfflineAudioCompletionEventListener callback) |
void |
removeCompleteListener(OfflineAudioCompletionEventListener callback,
boolean useCapture) |
void |
removeCompleteListener(OfflineAudioCompletionEventListener callback,
EventListenerOptions options) |
@JsNonNull Promise<java.lang.Void> |
resume()
The resume() method of the OfflineAudioContext interface resumes the progression of time in an audio context that has been suspended.
|
@JsNonNull Promise<AudioBuffer> |
startRendering()
The startRendering() method of the OfflineAudioContext Interface starts rendering the audio graph, taking into account the current connections and the current scheduled changes.
|
@JsNonNull Promise<java.lang.Void> |
suspend(double suspendTime)
The suspend() method of the OfflineAudioContext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.
|
addStatechangeListener, addStatechangeListener, addStatechangeListener, audioWorklet, createAnalyser, createBiquadFilter, createBuffer, createBufferSource, createChannelMerger, createChannelMerger, createChannelSplitter, createChannelSplitter, createConstantSource, createConvolver, createDelay, createDelay, createDynamicsCompressor, createGain, createIIRFilter, createIIRFilter, createOscillator, createPanner, createPeriodicWave, createPeriodicWave, createPeriodicWave, createPeriodicWave, createScriptProcessor, createScriptProcessor, createScriptProcessor, createScriptProcessor, createStereoPanner, createWaveShaper, currentTime, decodeAudioData, decodeAudioData, decodeAudioData, destination, listener, removeStatechangeListener, removeStatechangeListener, removeStatechangeListener, sampleRate, stateaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNullable OfflineAudioCompletionEventHandler oncomplete
public OfflineAudioContext(@Nonnull
OfflineAudioContextOptions contextOptions)
public OfflineAudioContext(int numberOfChannels,
int length,
float sampleRate)
@JsProperty(name="length") public int length()
public @JsNonNull Promise<java.lang.Void> resume()
public @JsNonNull Promise<AudioBuffer> startRendering()
public @JsNonNull Promise<java.lang.Void> suspend(double suspendTime)
@JsOverlay
public final void addCompleteListener(@Nonnull
OfflineAudioCompletionEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addCompleteListener(@Nonnull
OfflineAudioCompletionEventListener callback,
boolean useCapture)
@JsOverlay
public final void addCompleteListener(@Nonnull
OfflineAudioCompletionEventListener callback)
@JsOverlay
public final void removeCompleteListener(@Nonnull
OfflineAudioCompletionEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeCompleteListener(@Nonnull
OfflineAudioCompletionEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeCompleteListener(@Nonnull
OfflineAudioCompletionEventListener callback)