package js.html.audio
extends AudioNode › EventTarget
Available on jsThe
AudioBufferSourceNode
interface represents an audio source consisting of in-memory audio data, stored in anAudioBuffer
. It is anAudioNode
that acts as an audio source.
Documentation AudioBufferSourceNode by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
buffer:AudioBuffer
Is an AudioBuffer
that defines the audio asset to be played, or when set to the value null
, defines a single channel of silence.
read only detune:AudioParam
Is a AudioParam
representing detuning of oscillation in cents. Its default value is 0
.
loop:Bool
Is a Boolean attribute indicating if the audio asset must be replayed when the end of the AudioBuffer
is reached. Its default value is false
.
loopEnd:Float
Is a double value indicating, in seconds, where in the AudioBuffer
the replay of the play must stop (and eventually loop again). Its default value is 0
.
loopStart:Float
Is a double value indicating, in seconds, where in the AudioBuffer
the restart of the play must happen. Its default value is 0
.
onended:Function
Is an EventHandler
containing the callback associated with the ended_(Web_Audio)
event.
read only playbackRate:AudioParam
Is an a-rate AudioParam
that defines the speed factor at which the audio asset will be played. Since no pitch correction is applied on the output, this can be used to change the pitch of the sample.
start (when:Float = 0.0, grainOffset:Float = 0.0, ?grainDuration:Float):Void
Throws:
null |
DOMError |
---|
stop (when:Float = 0.0):Void
Throws:
null |
DOMError |
---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/audio/AudioBufferSourceNode.html