AXARTSet3DDistanceScale

C Specification

#include <revolution.h>
#include <revolution/axart.h>
void AXARTSet3DDistanceScale(f32 scale);

Arguments

scale Distance scale.

Return Values

None.

Description

AXARTSet3DDistanceScale() 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 similarly saved in the AXART_3D articulator member attenuation.

attenuation = -6dB × (dist ÷ scale)

See Also

AXARTSet3DDopplerScale
AXART_3D

Revision History

2006/03/01 Initial version.
2006/09/01 Added arguments.


CONFIDENTIAL