https://bugs.winehq.org/show_bug.cgi?id=42090
Bug ID: 42090 Summary: Highway Pursuit constantly emits loud noise when sound effects enabled Product: Wine Version: 1.7.42 Hardware: x86 URL: http://retrospec.sgn.net/game-links.php?link=highwaypu rsuit OS: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: directx-dsound Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: aeikum@codeweavers.com Regression SHA1: 2edb4bf320f5c09b658c382c8d8b9d9600d1f1e7 Distribution: ---
Created attachment 56602 --> https://bugs.winehq.org/attachment.cgi?id=56602 audio debug log (pulseaudio)
The game opens with an animated screen which shows some logos. Audio (music) works fine here. If you press <Esc> the game loads the menu and you should hear the loud, constantly playing noise which is originating from the cars passing by the camera. Their sounds should intensify and faint away as they come closer to the player then passing by. Instead, this loud sound is always played without changing it's volume or frequency even after starting a race. This becomes quite annoying after some time.
Tested with Windows XP and Win 7 profiles. Reproduced with Alsa and Pulseaudio.
Reverting the following commit on top of 2.0-rc3 fixes the problem:
commit 2edb4bf320f5c09b658c382c8d8b9d9600d1f1e7 Author: Andrew Eikum aeikum@codeweavers.com Date: Tue Apr 28 10:21:04 2015 -0500
dsound: Apply rolloff factor to distance attenuation.
Native dsound.dll also works around the problem.
Wine 2.0-rc3 Fedora 25 Pulseaudio 9.0 / Alsa 1.1.1
https://bugs.winehq.org/show_bug.cgi?id=42090
--- Comment #1 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 56603 --> https://bugs.winehq.org/attachment.cgi?id=56603 audio debug log (alsa)
https://bugs.winehq.org/show_bug.cgi?id=42090
--- Comment #2 from Andrew Eikum aeikum@codeweavers.com --- Thanks, I can reproduce this. Prior to that commit, we were treating the rolloff factor as if it were always 1. After that commit, we respect its actual value. Highway Pursuit sets the rolloff factor to 0.1, which results in the audio being 10x louder than it was before, so now you always hear it. Either we're interpreting this value incorrectly or something else is wrong with our positional volume calculation.
https://bugs.winehq.org/show_bug.cgi?id=42090
--- Comment #3 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 56621 --> https://bugs.winehq.org/attachment.cgi?id=56621 dsound: Fix rolloff factor calculation
This patch should correct the rolloff factor calculation. It behaves much more like native dsound in the tests.
It doesn't quite fix the game, however. The sound effects are still a little too loud, I think. The game does use the doppler effect to change pitch, and in my testing it affected the length of the played sample. Maybe that ties in here, too?
https://bugs.winehq.org/show_bug.cgi?id=42090
--- Comment #4 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Andrew Eikum from comment #3)
Created attachment 56621 [details] dsound: Fix rolloff factor calculation
This patch should correct the rolloff factor calculation. It behaves much more like native dsound in the tests.
It doesn't quite fix the game, however. The sound effects are still a little too loud, I think. The game does use the doppler effect to change pitch, and in my testing it affected the length of the played sample. Maybe that ties in here, too?
The sound effects are still a bit louder, especially during races, but it's much more tolerable than before. I'm fine with the patch if no one else complains. Thanks for taking the time for looking into this.
https://bugs.winehq.org/show_bug.cgi?id=42090
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1671a83f55bee46ee57cc0c8869 | |e943d67f14ea5 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #5 from Andrew Eikum aeikum@codeweavers.com --- Fixed by
commit 1671a83f55bee46ee57cc0c8869e943d67f14ea5 Author: Andrew Eikum aeikum@codeweavers.com Date: Wed Dec 28 14:02:54 2016 -0600
dsound: Fix rolloff factor calculation.
https://bugs.winehq.org/show_bug.cgi?id=42090
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.0-rc4.
https://bugs.winehq.org/show_bug.cgi?id=42090
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=42090
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #7 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.7.