playbackRate
Summary
The speed at which to render the audio stream. The default playbackRate value is 1. This parameter is a-rate.
Property of apis/webaudio/AudioBufferSourceNodeapis/webaudio/AudioBufferSourceNode
Syntax
var result = AudioBufferSourceNode.playbackRate;
AudioBufferSourceNode.playbackRate = value;
Return Value
Returns an object of type
AudioParam
Examples
var source = audioCtx.createBufferSource();
// play 25% faster than normal speed (1.0)
source.playbackRate.value = 1.25;
Related specifications
- Web Audio API
- W3C Editor’s Draft