- 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.
This commit is contained in:
Christoph Oelckers 2020-02-25 19:40:39 +01:00
parent 1c2ea506f2
commit 71083f2b23

View file

@ -148,27 +148,9 @@ class EXSoundEngine : public SoundEngine
public: public:
EXSoundEngine() EXSoundEngine()
{ {
int eax = 260; S_Rolloff.RolloffType = ROLLOFF_Doom;
TArray<uint8_t> 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.MinDistance = 0; S_Rolloff.MinDistance = 0;
S_Rolloff.MaxDistance = 4096; // It's really this big S_Rolloff.MaxDistance = 1536;
Init(disttable, 255);
} }
}; };