dsound: Fix angle to sound source calculation.

Стас Цымбалов dummyunit at gmail.com
Sun Mar 22 12:59:15 CDT 2015


This patch fixes incorrect sound positioning in dsound.
As of now, angle to sound source is calculated as angle between
vDistance and vOrientFront.
This leads to incorrect results for all sources that are not in the
same plane as speakers.
In extreme case: for sources directly above or below origin, angle is
calculated to -90 degrees, and they are played in the left speaker.

This patch changes angle calculation: angle to sound source is
calculated as angle between vDistance and plane given by vectors
vOrientFront and vOrientTop.
---
 dlls/dsound/sound3d.c | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dsound-Fix-angle-to-sound-source-calculation.patch
Type: text/x-patch
Size: 2503 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150322/8b2e4889/attachment.bin>


More information about the wine-patches mailing list