nw::snd::Sound3DManager::SetSonicVelocity Member Function

Syntax

#include <nw/snd/snd_Sound3DManager.h>

void SetSonicVelocity(
     f32 sonicVelocity
);

Arguments

Name Description
in sonicVelocity The sonic velocity.

Return Values

None.

Description

Sets the sonic velocity configured in 3D sound.

The set velocity is used in pitch change calculations, in accordance with the Doppler effect.

The units of the set value are the sonic velocity for a single frame. Since the speed of sound is approximately 340 m/s, if in the unit system for 3D space coordinates 1.0f is equivalent to 1 m and a sound is moved for 60 frames, the sonic velocity value must be set to 340.0f / 60.

If the sonic velocity is set to 0.0f, the Doppler effect will not occur. The default value is 0.0f.

See Also

GetSonicVelocity

Revision History

2010/03/12
Initial version.

CONFIDENTIAL