This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

dopplerFactor

Summary

A constant used to determine the amount of pitch shift to use when rendering a doppler effect. The default value is 1.

Property of apis/webaudio/AudioListenerapis/webaudio/AudioListener

Syntax

var result = AudioListener.dopplerFactor;
AudioListener.dopplerFactor = value;

Return Value

Returns an object of type NumberNumber

Examples

var audioCtx = new AudioContext();
var myListener = audioCtx.listener;
myListener.dopplerFactor = 1;

Related specifications

W3C Web Audio API
W3C Editor’s Draft