@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="AudioBufferSourceNode")
public class AudioBufferSourceNode
extends AudioScheduledSourceNode
| Modifier and Type | Field and Description |
|---|---|
@JsNullable AudioBuffer |
buffer
The buffer property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data.
|
boolean |
loop
The loop property's default value is false.
|
double |
loopEnd
A floating-point number indicating the offset, in seconds, into the audio buffer at which each loop will loop return to the beginning of the loop (that is, the current play time gets reset to AudioBufferSourceNode.loopStart).
|
double |
loopStart
The loopStart property of the AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen.
|
onendedchannelCount, channelCountMode, channelInterpretation| Constructor and Description |
|---|
AudioBufferSourceNode(BaseAudioContext context)
The AudioBufferSourceNode() constructor creates a new AudioBufferSourceNode object instance.
|
AudioBufferSourceNode(BaseAudioContext context,
AudioBufferSourceOptions options)
The AudioBufferSourceNode() constructor creates a new AudioBufferSourceNode object instance.
|
| Modifier and Type | Method and Description |
|---|---|
AudioParam |
detune()
The detune property of the AudioBufferSourceNode interface is a k-rate AudioParam representing detuning of oscillation in cents.
|
AudioParam |
playbackRate()
The playbackRate property of the AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played.
|
void |
start()
undefined.
|
void |
start(double when)
undefined.
|
void |
start(double when,
double offset)
undefined.
|
void |
start(double when,
double offset,
double duration)
undefined.
|
addEndedListener, addEndedListener, addEndedListener, removeEndedListener, removeEndedListener, removeEndedListener, stop, stopconnect, connect, connect, connect, connect, context, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, numberOfInputs, numberOfOutputsaddEventListener, 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 AudioBuffer buffer
public boolean loop
public double loopEnd
public double loopStart
public AudioBufferSourceNode(@Nonnull
BaseAudioContext context,
@Nonnull
AudioBufferSourceOptions options)
public AudioBufferSourceNode(@Nonnull
BaseAudioContext context)
@JsProperty(name="detune") @Nonnull public AudioParam detune()
@JsProperty(name="playbackRate") @Nonnull public AudioParam playbackRate()
public void start(double when,
double offset,
double duration)
public void start(double when,
double offset)
public void start(double when)
start in class AudioScheduledSourceNodepublic void start()
start in class AudioScheduledSourceNode