https://bugs.winehq.org/show_bug.cgi?id=56330
Bug ID: 56330 Summary: Regression: Vietcong: Audio cuts off and repeats Product: Wine Version: 9.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: sa@whiz.se Distribution: ---
The game Vietcong suffers from audio cutting of too early and/or repeating several times. This is a regression introduced during Wine 5.x development but still an issue with current git. Bisecting leads to this commit:
a10824a03cb7ad1a2a1987433c5ad832dcdf6962 is the first bad commit commit a10824a03cb7ad1a2a1987433c5ad832dcdf6962 Author: Andrew Eikum aeikum@codeweavers.com Date: Mon Aug 17 10:38:18 2020 -0500
winepulse: Don't rely on pulseaudio callbacks for timing.
Contains contributions from Mark Harmstone and Zhiyi Zhang.
Some devices, especially USB devices, have very irregular timing or very long periods. Some Windows applications (The Witcher 3) are built to expect regular, short period times, and so would underrun when the device timing didn't match their expectations. This patch decouples the Windows-side timing from the OS-side timing so we can meet those applications' requirements.
Signed-off-by: Andrew Eikum aeikum@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
dlls/winepulse.drv/mmdevdrv.c | 613 +++++++++++++++++++----------------------- 1 file changed, 279 insertions(+), 334 deletions(-)
To reproduce, either patch Wine to include the change from #39057 or use the fan-made patch VCStarter (1.7 BETA) from http://www.vietcong.info/portal/forum/viewthread.php?thread_id=899
The sound issue is somewhat noticeable with the music in the main menu but very noticeable if you listen to the drill sergeant in the tutorial levels. Select "Single player" -> "Tutorial" -> "Drill camp 1".
There's a demo available but it does not exhibit the bug.