squelch.nodes.audio-buffer-source
get-buffer
(get-buffer buffer-source)
Is an AudioBuffer that defines the audio asset to be played, or when set to
the value null, defines a single channel of silence.
get-loop
(get-loop buffer-source)
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.
get-loop-end
(get-loop-end buffer-source)
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.
get-loop-start
(get-loop-start buffer-source)
Is a double value indicating, in seconds, where in the AudioBuffer the
restart of the play must happen. Its default value is 0.
get-on-ended
(get-on-ended buffer-source)
Is an EventHandler containing the callback associated with the ended event.
get-playback-rate
(get-playback-rate buffer-source)
Read only.
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.
set-buffer
(set-buffer buffer-source buffer)
Is an AudioBuffer that defines the audio asset to be played, or when set to
the value null, defines a single channel of silence.
set-loop
(set-loop buffer-source loop-status)
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.
set-loop-end
(set-loop-end buffer-source end)
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.
set-loop-start
(set-loop-start buffer-source start)
Is a double value indicating, in seconds, where in the AudioBuffer the
restart of the play must happen. Its default value is 0.
set-on-ended
(set-on-ended buffer-source ended-fn)
Is an EventHandler containing the callback associated with the ended event.
start
(start buffer-source)(start buffer-source start-when)(start buffer-source start-when offset)(start buffer-source start-when offset duration)
Schedules the start of the playback of the audio asset.
stop
(stop buffer-source)(stop buffer-source stop-when)
Schedules the end of the playback of an audio asset.