From 71083f2b239bf85e8dccfca83efa14a1e1b07546 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 25 Feb 2020 19:40:39 +0100 Subject: [PATCH] - use sound rolloff settings for Exhumed that actually work. I cannot say if this is correct because the sound in PCExhumed doesn't seem right so the rolloff distance was more or less guesswork based on what sounds ok. --- source/exhumed/src/sound.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/source/exhumed/src/sound.cpp b/source/exhumed/src/sound.cpp index bd8d03e54..a6f76124e 100644 --- a/source/exhumed/src/sound.cpp +++ b/source/exhumed/src/sound.cpp @@ -148,27 +148,9 @@ class EXSoundEngine : public SoundEngine public: EXSoundEngine() { - int eax = 260; - TArray disttable(256, 1); - - for (int i = 0; i < 256; i++) - { - if (eax > 65280) - { - disttable[i] = 0; - } - else - { - disttable[i] = 255 - (eax >> 8); - - eax = (eax * eax) >> 8; - } - } - - S_Rolloff.RolloffType = ROLLOFF_Custom; + S_Rolloff.RolloffType = ROLLOFF_Doom; S_Rolloff.MinDistance = 0; - S_Rolloff.MaxDistance = 4096; // It's really this big - Init(disttable, 255); + S_Rolloff.MaxDistance = 1536; } };