Changeset 6393 for code/branches/presentation2/src/orxonox
- Timestamp:
- Dec 21, 2009, 4:24:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
r6388 r6393 79 79 { 80 80 float refDist = this->getScene()->getSoundReferenceDistance(); 81 alSource i(this->audioSource_, AL_REFERENCE_DISTANCE, refDist);81 alSourcef(this->audioSource_, AL_REFERENCE_DISTANCE, refDist); 82 82 // TODO: 500 is very magical here. Derive something better 83 alSource i(this->audioSource_, AL_MAX_DISTANCE, refDist * 500);83 alSourcef(this->audioSource_, AL_MAX_DISTANCE, refDist * 500); 84 84 } 85 85 this->tick(0); // update position, orientation and velocity
Note: See TracChangeset
for help on using the changeset viewer.