#include <cafe.h> #include <cafe/axart.h> void AXARTSet3DDistanceScale(f32 scale);
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 = -6dB x (dist ÷ scale)
2013/05/08 Automated cleanup pass.
2006/09/01 Added an argument.
2006/03/01 Initial version.