Alexandre Julliard pushed to branch master at wine / wine
Commits: 4261fa4b by Aida Jonikienė at 2024-11-26T18:25:56+01:00 dsound: Handle NaN values in the 3D code.
GTA San Andreas calls floating-point 3D functions with NaN values under certain circumstances which eventually results in dwTotalAmpFactor value being really high (and causing extremely loud audio output).
- - - - - 9e86063d by Aida Jonikienė at 2024-11-26T18:25:56+01:00 dsound: Add an angle check for SetOrientation().
The subsequent tests reveal the angle between front and top vectors must be higher than 0 degrees.
- - - - - 2c7f5866 by Aida Jonikienė at 2024-11-26T18:25:56+01:00 dsound/tests: Add NaN tests for floating-point 3D functions.
- - - - - 4798f3dc by Aida Jonikienė at 2024-11-26T18:25:56+01:00 dsound: Add non-NaN value tests for SetOrientation().
- - - - -
2 changed files:
- dlls/dsound/sound3d.c - dlls/dsound/tests/ds3d.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/5a18f5511eab2a9e45df1a5e86e47f...