AL.SpeedOfSound(Single) Method

Definition

AL.SpeedOfSound allows the application to change the reference (propagation) speed used in the Doppler calculation. The source and listener velocities should be expressed in the same units as the speed of sound.

public static void SpeedOfSound (float value);
static member SpeedOfSound : single -> unit

Parameters

value
Single

A negative or zero value will result in an error, and the command is ignored. Default: 343.3f (appropriate for velocity units of meters and air as the propagation medium). The current setting can be queried using AL.Get with parameter ALGetFloat.SpeedOfSound.

Applies to