| OpenAL Specification and Reference | ||
|---|---|---|
| <<< Previous | State and State Requests | Next >>> |
The Doppler Effect depends on the velocities of Source and Listener relative to the medium, and the propagation speed of sound in that medium. The application might want to emphasize or de-emphasize the Doppler Effect as physically accurate calculation might give the desired results. The amount of frequency shift (pitch change) is proportional to the speed of listener and source along their line of sight. The application can increase or decrease that frequency shift by specifying the scaling factor OpenAL should apply to the result of the calculation.
void DopplerScale ( float dopplerScale );
Calculation of the velocity-dependend Doppler Effect is controlled by using the Enable/Disable commands with the DOPPLER_SHIFT parameter, which can also be used with the IsEnabled query.
| <<< Previous | Home | Next >>> |
| Sound Propagation Speed | Up | Listener and Sources |