nw::snd::SoundActor::SetVolume Member Function

Syntax

#include <nw/snd/snd_SoundActor.h>
void SetVolume(
     f32 volume
);

Arguments

Name Description
in volume The volume change ratio (0.0 to 1.0).

Return Values

None.

Description

Changes the volume of the actor.

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

The value specified by this function operates independently of other volume parameters, which are mixed together.

volume is set to a ratio from 0.0 to 1.0. There is no effect on the volume if 1.0 is specified. If 0.0 is specified, no sound is output. The default value is 1.0.

See Also

GetVolume

Revision History

2010/02/23
Initial version.

CONFIDENTIAL