nw::snd::SoundActor::SetPan Member Function

Syntax

#include <nw/snd/snd_SoundActor.h>
void SetPan(
     f32 pan
);

Arguments

Name Description
in pan Relative change in the pan with 0.0 as the base value.

Return Values

None.

Description

Changes the pan (left/right orientation) of the actor.

The actor pan affects all sounds that the actor is playing.

The value specified by this function operates independently of other pan parameters, which are all layered.

pan specifies a value representing the relative change in the location of the sound. If 0.0 is specified, the pan value set within data is unchanged. When 1.0 is specified, a sound located at the center will be located at the far right, and when -1.0 is specified, a sound that located at the center will be located at the far left. The default value is 0.0.

See Also

GetPan

Revision History

2010/02/23
Initial version.

CONFIDENTIAL