AXARTSet3DDopplerScale

Syntax

#include <cafe.h>
#include <cafe/axart.h>

void AXARTSet3DDopplerScale(f32 scale);

Parameters

scale Closing speed scale.

Return Values

None.

Description

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

Do Not Call From

None.

See Also

AXARTSet3DDistanceScale
AXART_3D

Revision History

2013/05/08 Automated cleanup pass.
2006/09/01 Added an argument.
2006/03/01 Initial version.


CONFIDENTIAL