mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- 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:
parent
1c2ea506f2
commit
71083f2b23
1 changed files with 2 additions and 20 deletions
|
@ -148,27 +148,9 @@ class EXSoundEngine : public SoundEngine
|
|||
public:
|
||||
EXSoundEngine()
|
||||
{
|
||||
int eax = 260;
|
||||
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.RolloffType = ROLLOFF_Doom;
|
||||
S_Rolloff.MinDistance = 0;
|
||||
S_Rolloff.MaxDistance = 4096; // It's really this big
|
||||
Init(disttable, 255);
|
||||
S_Rolloff.MaxDistance = 1536;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue