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)

This commit is contained in:
2013-04-26 17:58:58 -07:00
parent 9574f782ba
commit 6c9c6c5881

View File

@@ -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),