void EntityEmitter::UpdateSound(Sound& sound) { AL::Source& source = sound.GetSource(); if (entityNum == listenerEntity) { MakeLocal(source); } else { Make3D(source, entities[entityNum].position, entities[entityNum].velocity); } }
void LocalEmitter::InternalSetupSound(Sound& sound) { AL::Source& source = sound.GetSource(); MakeLocal(source); }
void PositionEmitter::InternalSetupSound(Sound& sound) { AL::Source& source = sound.GetSource(); Make3D(source, position, origin); }
void PositionEmitter::UpdateSound(Sound& sound) { AL::Source& source = sound.GetSource(); Make3D(source, position, origin); }
void EntityEmitter::InternalSetupSound(Sound& sound) { AL::Source& source = sound.GetSource(); Make3D(source, entities[entityNum].position, entities[entityNum].velocity); }
void Emitter::SetupSound(Sound& sound) { sound.GetSource().SetReferenceDistance(120.0f); InternalSetupSound(sound); UpdateSound(sound); }