#include <revolution.h> #include <revolution/axart.h> void AXARTSet3DDopplerScale(f32 scale);
| scale | Closing speed scale. |
|---|
None.
The AXARTSet3DDopplerScale function sets an arbitrary closing speed scale for the Doppler pitch of 3D sounds. The AXART library finds the pitch for the Doppler Effect using the following formula when a sound source approaches the camera. The scale set by this function is assigned to scale in the formula, while the AXART_3D articulator member closingSpeed is assigned to closingSpeed. Calculation results are saved in the same AXART_3D articulator's member pitch.
pitch = closingSpeed ÷ scale
AXARTSet3DDistanceScale, AXART_3D
2006/09/01 Added an argument.
2006/03/01 Initial version.
CONFIDENTIAL