From c0e7c5d6b7013cc1fdbe3194568ed69fa90a160c Mon Sep 17 00:00:00 2001 From: darkrose Date: Sat, 7 Mar 2015 14:45:52 +1000 Subject: [PATCH] ensure reference distance is set on positional sounds --- src/sound_openal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound_openal.cpp b/src/sound_openal.cpp index 58660d9..fbd762e 100644 --- a/src/sound_openal.cpp +++ b/src/sound_openal.cpp @@ -479,7 +479,7 @@ public: alSourcei(sound->source_id, AL_SOURCE_RELATIVE, false); alSource3f(sound->source_id, AL_POSITION, pos.X, pos.Y, pos.Z); alSource3f(sound->source_id, AL_VELOCITY, 0, 0, 0); - //alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 30.0); + alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 30.0); } };