Partially handle EAX1.0 properties
commit546e92b71ed0a4ffdc707d0e11d327bbe2265e64
authorChris Robinson <chris.kcat@gmail.com>
Sat, 23 Jun 2018 06:04:53 +0000 (22 23:04 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Sat, 23 Jun 2018 06:04:53 +0000 (22 23:04 -0700)
treea1e22af66c28a9180ae32ac124c1c7eccaab7294
parent02a3e5715930bbcc06b62714a5aea57b401b2ccc
Partially handle EAX1.0 properties

This is kind of dodgy since it tries to use the EAX2 environment presets while
mapping Volume to the effect/room gain (converting between linear gain and mB
as necessary), passing the decay time through as-is, and pretending to handle
dampening (the value is tracked, but ignored). Similarly, the EAX1 buffer
property maps the reverb mix to the room path gain, converting between linear
gain and mB.

This will hopefully be enough to satisfy apps that use EAX 1.0 while being
relatively close to the intended sound.
buffer.c
dsound_main.c
dsound_private.h
eax.h