mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- fixed ambient sounds "leaking" into reverb environment
Set speed of sound to 343.3 and init scale to 1 according to @kcat suggestion https://forum.zdoom.org/viewtopic.php?t=63185 https://forum.zdoom.org/viewtopic.php?t=63524
This commit is contained in:
parent
2f161a04d9
commit
69492b1e27
1 changed files with 3 additions and 3 deletions
|
@ -824,12 +824,12 @@ OpenALSoundRenderer::OpenALSoundRenderer()
|
|||
|
||||
// Speed of sound is in units per second. Presuming we want to simulate a
|
||||
// typical speed of sound of 343.3 meters per second, multiply it by the
|
||||
// units per meter scale (32?), and set the meters per unit to the scale's
|
||||
// units per meter scale (1), and set the meters per unit to the scale's
|
||||
// reciprocal. It's important to set these correctly for both doppler
|
||||
// effects and reverb.
|
||||
alSpeedOfSound(343.3f * 32.0f);
|
||||
alSpeedOfSound(343.3f);
|
||||
if(ALC.EXT_EFX)
|
||||
alListenerf(AL_METERS_PER_UNIT, 1.0f/32.0f);
|
||||
alListenerf(AL_METERS_PER_UNIT, 1.0f);
|
||||
|
||||
alDistanceModel(AL_INVERSE_DISTANCE);
|
||||
if(AL.EXT_source_distance_model)
|
||||
|
|
Loading…
Reference in a new issue