A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/apis/webaudio/AudioListener/setVelocity below:

setVelocity · WebPlatform Docs

setVelocity Summary

Sets the velocity vector of the listener. This vector controls both the direction of travel and the speed in 3D space. This velocity relative an audio source’s velocity is used to determine how much doppler shift (pitch change) to apply. The x, y, z parameters describe a direction vector indicating direction of travel and intensity. The default value is (0,0,0).

Method of apis/webaudio/AudioListenerapis/webaudio/AudioListener

Syntax
var  = AudioListener.setVelocity(x, y, z);
Parameters x
Data-type
Number
y
Data-type
Number
z
Data-type
Number
Return Value

Returns an object of type NumberNumber

Examples
var audioCtx = new AudioContext();
var myListener = audioCtx.listener;
myListener.setVelocity(0,0,0);
Related specifications
Web Audio API
W3C Editor’s draft

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4