nw::snd::SoundAmbientParam Structure

Header file: nw/snd/snd_BasicSound.h

Syntax

struct SoundAmbientParam
{
   f32 volume;
   f32 pitch;
   f32 pan;
   f32 span;
   f32 fxSend;
   f32 lpf;
   f32 biquadFilterValue;
   int biquadFilterType;
   int priority;
   u32 userData;
};

Description

Ambient parameter structure.

When 3D sounds are used, you can use this structure to reference the previous 3D sound calculation results, as well as to store the calculation results of the 3D sound engine class.

Member Variables

volume f32 Multiplication factor for the sound volume. If 0.0 is specified, no sound is output.
pitch f32 Frequency factor for the sound pitch. Pitch does not change when 1.0 is specified. When 2.0 is specified, the frequency to be reproduced is doubled, and the pitch is one octave higher.
pan f32 Amount of relative change in the pan (right/left location) of the sound. Pitch does not change when 0.0 is specified. 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.
span f32 Currently disabled.
fxSend f32 Currently disabled.
lpf f32 Currently disabled.
biquadFilterValue f32 Currently disabled.
biquadFilterType int Currently disabled.
priority int Amount of relative change in the player priority of the sound. This value is added to the original player priority.
userData u32 The user can freely use this parameter. It is reset to 0 when the sound is played.

Member Functions

SoundAmbientParam Constructor.

See Also

Sound3DEngine::UpdateAmbientParam

Revision History

2010/04/08
Deleted the VoiceOutParam member to increase the speed.
2010/03/12
Initial version.

CONFIDENTIAL