From 6c9c6c588128d595743362d9a39eb16d5dba46a6 Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Fri, 26 Apr 2013 17:58:58 -0700 Subject: [PATCH] re-enabled culling of distance audio sources (Still needs to be fixed in order to avoid culling audio sources that are distant, but contribute to reverb) --- KREngine/kraken/KRAudioManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KREngine/kraken/KRAudioManager.cpp b/KREngine/kraken/KRAudioManager.cpp index d26313b..6d57eb9 100644 --- a/KREngine/kraken/KRAudioManager.cpp +++ b/KREngine/kraken/KRAudioManager.cpp @@ -1508,7 +1508,7 @@ void KRAudioManager::startFrame(float deltaTime) // apply minimum-cutoff so that we don't waste cycles processing very quiet / distant sound sources gain = KRMAX(gain - KRENGINE_AUDIO_CUTOFF, 0.0f) / (1.0f - KRENGINE_AUDIO_CUTOFF); - if(gain > 0.0f || true) { // FINDME, HACK! "true" added to prevent squelching of audio sources that are contributing to reverb + if(gain > 0.0f /*|| true*/) { // FINDME, HACK! "true" added to prevent squelching of audio sources that are contributing to reverb KRVector3 source_listener_space = KRVector3( KRVector3::Dot(listener_right, diff),