dsound: Fix rolloff factor calculation.
commit1671a83f55bee46ee57cc0c8869e943d67f14ea5
authorAndrew Eikum <aeikum@codeweavers.com>
Wed, 28 Dec 2016 20:02:54 +0000 (28 14:02 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 29 Dec 2016 15:52:31 +0000 (29 16:52 +0100)
treefc8a6092e55f4e92d2e61d8108f0d07d4eb57cc6
parentc0b30432ea76334811e43ccef14a7190fbce4a36
dsound: Fix rolloff factor calculation.

We should treat the rolloff factor as a factor of the distance of the
buffer. For example, a rolloff factor of 2 should treat the buffer as if
it were twice as far away from the listener as it is.

The previous calculation would instead double the decibels of
attenuation.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/dsound/sound3d.c