29 Sound::Sound(ALuint buffer,
SoundManager* soundManager,
int sourceIndex) :
31 , sound_manager(soundManager)
32 , source_index(sourceIndex)
36 , position(Vector3::ZERO)
37 , velocity(Vector3::ZERO)
59 if (value != AL_PLAYING)
72 float distance = (pos -
position).length();
78 else if (distance < sound_manager->REFERENCE_DISTANCE)
94 return (value == AL_PLAYING);
127 if (
gain == this->gain)
136 if (
loop == this->loop)
145 if (
pitch == this->pitch)