- Timestamp:
- Dec 17, 2009, 4:52:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
r6370 r6372 35 35 #include "core/EventIncludes.h" 36 36 #include "core/XMLPort.h" 37 #include "Scene.h" 37 38 #include "SoundManager.h" 38 39 #include <core/ConsoleCommandCompilation.h> … … 79 80 { 80 81 BaseSound::initialiseSource(); 82 if (this->getScene()) 83 { 84 float refDist = this->getScene()->getSoundReferenceDistance(); 85 alSourcei(this->audioSource_, AL_REFERENCE_DISTANCE, refDist); 86 // TODO: 500 is very magical here. Derive something better 87 alSourcei(this->audioSource_, AL_MAX_DISTANCE, refDist * 500); 88 } 81 89 this->tick(0); // update position, orientation and velocity 82 90 }
Note: See TracChangeset
for help on using the changeset viewer.