[Orxonox-commit 1675] r6393 - code/branches/presentation2/src/orxonox/sound
rgrieder at orxonox.net
rgrieder at orxonox.net
Mon Dec 21 16:24:19 CET 2009
Author: rgrieder
Date: 2009-12-21 16:24:19 +0100 (Mon, 21 Dec 2009)
New Revision: 6393
Modified:
code/branches/presentation2/src/orxonox/sound/SoundStreamer.cc
code/branches/presentation2/src/orxonox/sound/WorldSound.cc
Log:
Removed two gcc warnings.
Modified: code/branches/presentation2/src/orxonox/sound/SoundStreamer.cc
===================================================================
--- code/branches/presentation2/src/orxonox/sound/SoundStreamer.cc 2009-12-21 13:28:46 UTC (rev 6392)
+++ code/branches/presentation2/src/orxonox/sound/SoundStreamer.cc 2009-12-21 15:24:19 UTC (rev 6393)
@@ -125,4 +125,4 @@
}
}
}
-}
\ No newline at end of file
+}
Modified: code/branches/presentation2/src/orxonox/sound/WorldSound.cc
===================================================================
--- code/branches/presentation2/src/orxonox/sound/WorldSound.cc 2009-12-21 13:28:46 UTC (rev 6392)
+++ code/branches/presentation2/src/orxonox/sound/WorldSound.cc 2009-12-21 15:24:19 UTC (rev 6393)
@@ -78,9 +78,9 @@
if (this->getScene())
{
float refDist = this->getScene()->getSoundReferenceDistance();
- alSourcei(this->audioSource_, AL_REFERENCE_DISTANCE, refDist);
+ alSourcef(this->audioSource_, AL_REFERENCE_DISTANCE, refDist);
// TODO: 500 is very magical here. Derive something better
- alSourcei(this->audioSource_, AL_MAX_DISTANCE, refDist * 500);
+ alSourcef(this->audioSource_, AL_MAX_DISTANCE, refDist * 500);
}
this->tick(0); // update position, orientation and velocity
}
More information about the Orxonox-commit
mailing list