#include <SoundModule.h>
Public Member Functions | |
void | SetPosition (const float *pos) |
void | SetVelocity (const float *vel) |
void | SetAttenuation (float attn) |
Sets the attenuation value of this wav player. | |
void | SetAttenuationDistance (float dist) |
Sets the attenuation distance value of this wav player. |
The class that holds wav data and plays it when instructed. It is heard from the global sound module listener.
void C3DWavPlayer::SetPosition | ( | const float * | pos | ) |
Sets the position of the 3d wav player.
pos | An array of 3 floats denoting the position. |
void C3DWavPlayer::SetVelocity | ( | const float * | vel | ) |
Sets the velocity of the 3d wav player.
vel | An array of 3 floats denoting the velocity. The position is not updated regularly and accordingly. This is just for sound effects. |