#include <revolution.h> #include <revolution/axart.h> void AXARTSet3DDistanceScale(f32 scale);
| scale | Distance scale. |
|---|
None.
The AXARTSet3DDistanceScale function sets an arbitrary distance scale for the volume attenuation of 3D sounds. The AXART Library finds the distance attenuation of volume based on the distance from the camera using the following formula. The scale set by this function is assigned to scale in the formula, while the AXART_3D articulator member dist is assigned to dist. Calculation results are saved in the same AXART_3D articulator's member attenuation.
attenuation = -6dB × (dist ÷ scale)
AXARTSet3DDopplerScale, AXART_3D
2006/09/01 Added an argument.
2006/03/01 Initial version.
CONFIDENTIAL