specify float instead of implicitly converted double

This commit is contained in:
Stephen Birarda 2016-02-09 17:05:16 -08:00
parent 1a7738353a
commit a8841b475f

View file

@ -169,7 +169,7 @@ float AudioMixer::azimuthForSource(const PositionalAudioStream& streamToAdd, con
// project the rotated source position vector onto the XZ plane
rotatedSourcePosition.y = 0.0f;
const float SOURCE_DISTANCE_THRESHOLD = 1e-12;
static const float SOURCE_DISTANCE_THRESHOLD = 1e-12f;
if (glm::length2(rotatedSourcePosition) > SOURCE_DISTANCE_THRESHOLD) {
// produce an oriented angle about the y-axis