nw::snd::Sound3DCalculator::CalcVolumeAndPriority Member Function

Syntax

#include <nw/snd/snd_Sound3DCalculator.h>
static void CalcVolumeAndPriority(
     const Sound3DManager & manager,
     const Sound3DListener & listener,
     const Sound3DParam & actorParam,
     f32 * volumePtr,
     int* priorityPtr
);

Arguments

Name Description
in manager 3D sound manager used in the calculation.
in listener 3D sound listener used in the calculation.
in actorParam 3D sound parameter used in the calculation.
out volumePtr Pointer that stores the result of the volume calculation.
out priorityPtr Pointer that stores the result of the priority calculation.

Return Values

None.

Description

Performs standard 3D sound parameter calculations for volume and priority.

Volume and priority are calculated together by this function because they are connected to each other for 3D sounds.

See Also

Sound3DManager Class
Sound3DListener Class
Sound3DParam Structure

Revision History

2010/03/12
Initial version.

CONFIDENTIAL