nw::snd::SoundArchive::Sound3DInfo Structure

Header file: nw/snd/snd_SoundArchive.h

Syntax

struct Sound3DInfo
{
   u32 flags;
   f32 decayRatio;
   u8 decayCurve;
   u8 dopplerFactor;
};

Description

Structure storing a sound's 3D sound setting information.

Enumerated Types

DecayCurve Enum indicating the shape of the 3D decay curve.

Member Constants

S FLAG_CTRL_VOLUME Flag indicating that volume calculations are being made for 3D sound.
S FLAG_CTRL_PRIORITY Flag indicating that priority calculations are being made for 3D sound.
S FLAG_CTRL_PAN Flag indicating that pan calculations are being made for 3D sound.

Member Variables

flags Bit flags representing parameters to be processed during 3D calculations. Flags are represented using the logical sum of FLAG_***.
decayRatio The 3D attenuation ratio.
decayCurve The shape of a 3D attenuation curve. Stored DecayCurve.
dopplerFactor The 3D Doppler factor.

See Also

ReadSound3DInfo

Revision History

2010/03/05
Initial version.

CONFIDENTIAL