nw::snd::Sound3DParam Structurestruct Sound3DParam
{
math::VEC3 position;
math::VEC3 velocity;
u32 ctrlFlag;
u32 actorUserParam;
u32 soundUserParam;
f32 decayRatio;
u8 decayCurve;
u8 dopplerFactor;
};
These are 3D sound parameters.
3D sound is calculated using these parameters.
Values set for each sound using SoundMaker are assigned to ctrlFlag, decayCurve, decayRatio, dopplerFactor and soundUserParam.
actorUserParam is assigned the value set for Sound3DActor::SetUserParam.
dopplerFactor represents the application of the Doppler effect. Sound does not change when 0. The later the value, the greater the change.
| position | math::VEC3 | The 3D sound actor's current position. | |
|---|---|---|---|
velocity
|
math::VEC3 | The 3D sound actor's velocity. | |
| ctrlFlag | u32 | Parameter control flag Used internally by the sound library. | |
| actorUserParam | u32 | The user parameter set for the actor. | |
| soundUserParam | u32 | The user parameter set for the sound. | |
| decayRatio | f32 | The attenuation rate of the sound when the actor and listener are separated by one volume attenuation unit of distance. | |
| decayCurve | u8 | The type of the volume attenuation curve. Sets the value of DecayCurve. | |
| dopplerFactor | u8 | The Doppler factor. |
| Sound3DParam | Constructor. |
|---|
CONFIDENTIAL