http://bugs.winehq.org/show_bug.cgi?id=13130
Summary: Sound in Nightlong only working every couple of starts Product: Wine Version: 1.0-rc1 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-dsound AssignedTo: wine-bugs@winehq.org ReportedBy: hein@kde.org
"Nightlong" is an adventure game released in 1998 by Team 17. It works well in Wine, except for sound - music, ambient, dialogue - not working every time the game is started, but only sometimes.
Tested Wine versions include 0.9.61 and 1.0rc1. I have never run the game with an earlier version of Wine, so I have no "known good" to use in a bisect, and don't know if the problem is a regression.
A Wine default config was used, except for the Windows version being set to "Windows 98" as it seemed most appropriate given the age of the game. The bug also happens with "Windows XP", however.
A demo of the game is available here: http://www.fileplanet.com/28736/20000/fileinfo/Nightlong:-Union-City-Conspir...
However, I have used a patched full version of the game, not the demo.
I have created two logs with WINEDEBUG=+dsalsa,+wave as instructed by mlankhorst on IRC. The first log is from a session in which sound is working, the second from a session in which sound is not working. Both logs cover the same actions: Starting the game, skipping the intro video, and in the subsequent first interactive screen, double-clicking an interactive object to make the player character utter a line of dialogue. Then, bringing up the menu and quitting the game again. The logs are attached as gzipped plain text files.
I'm available to provide further debug information and test any patches or solutions.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #1 from Eike Hein hein@kde.org 2008-05-11 09:55:21 --- Created an attachment (id=12928) --> (http://bugs.winehq.org/attachment.cgi?id=12928) A session in the game with sound working.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #2 from Eike Hein hein@kde.org 2008-05-11 09:55:45 --- Created an attachment (id=12929) --> (http://bugs.winehq.org/attachment.cgi?id=12929) A session in the game with sound broken.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #3 from Eike Hein hein@kde.org 2008-05-11 11:08:23 --- Sound appears to be working always when "Hardware acceleration" in winecfg is set to "Emulation". This seems to make the audio sound a bit duller, but at least it's reliable. When set to "Full", "Standard" or "Basic", sound only works intermittently as described,
http://bugs.winehq.org/show_bug.cgi?id=13130
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |m.b.lankhorst@gmail.com
--- Comment #4 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-05-12 00:21:35 --- Ok, hardware acceleration to 'emulation' means that the alsa accelerated interface is not used. Can you create a +dsalsa,+dsound of the failing game with acceleration set?
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #5 from Eike Hein hein@kde.org 2008-05-12 07:46:11 --- Created an attachment (id=12968) --> (http://bugs.winehq.org/attachment.cgi?id=12968) Another broken session with refined WINEDEBUG settings.
This one is with WINEDEBUG=+dsalsa,+dsound, as requested. It covers the same action as the previous logs: Start, skipping intro, double-clicking interactive object to provoke dialogue, bring up menu, quit. As before, ambient, music and dialogue - well, any sound - was missing.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #6 from Eike Hein hein@kde.org 2008-05-12 07:47:21 --- In case it's helpful: My sound hardware is an Intel HDA codec from Analog Devices, an AD1988B. The driver is built-into the kernel, which is v2.6.25.3. The ALSA userland is v1.0.16.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #7 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-05-12 11:35:01 --- Ok, the error seems to be:
trace:dsalsa:IDsDriverBufferImpl_GetPosition At position: 4116 (3476) - Used -640 ... warn:dsound:DSOUND_PerformMix Probable buffer underrun
I don't think that the Used variable should ever be negative. Looking more at it indicates that the amount of available frames is higher then the amount of frames in the buffer which is awkward. I don't think that case is handled well in the wine code, so I will need to think about it.
Which distribution are you running?
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #8 from Eike Hein hein@kde.org 2008-05-12 11:40:10 --- I'm using Gentoo Linux. Wine is compiled with non-scary CFLAGS, don't worry. The compiler is gcc 4.2.3. I'm comfy with compiling and patching around, so if you want me to test any patches or git revs, bring it on. I'm also available on Freenode as "Sho_" in #winehackers.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #9 from Eike Hein hein@kde.org 2008-05-12 12:29:24 --- Another interesting note is that I can now reproduce the loss of sound reliably even in a run in which sound initially works; bringing up the game menu screen and dropping back into gameplay breaks sound even if it previously worked (the game drops from the intro right into gameplay usually). So I should now have reliable means to tell if any sort of code change fixes the problem.
http://bugs.winehq.org/show_bug.cgi?id=13130
Eike Hein hein@kde.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.0-rc1 |1.0.0
--- Comment #10 from Eike Hein hein@kde.org 2008-06-21 09:59:30 --- Problem persists in Wine 1.0.
http://bugs.winehq.org/show_bug.cgi?id=13130
James Hawkins truiken@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.0.0 |1.0-rc1
--- Comment #11 from James Hawkins truiken@gmail.com 2008-06-21 11:00:46 --- Don't change the original reported version.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #12 from Austin English austinenglish@gmail.com 2008-12-19 16:04:06 --- Is this still an issue in current (1.1.10 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #13 from Eike Hein hein@kde.org 2008-12-22 05:22:33 --- Yes. Things are unchanged with 1.1.10.
http://bugs.winehq.org/show_bug.cgi?id=13130
--- Comment #14 from Austin English austinenglish@gmail.com 2009-06-30 11:34:22 --- Is this still an issue in current (1.1.24 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=13130
Eike Hein hein@kde.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #15 from Eike Hein hein@kde.org 2009-06-30 20:54:50 --- I just tried with Wine 1.1.24, and I'm happy to report that this bug appears to be fixed by now, and that the game in fact appears to run perfectly in general. I'm closing this and moving on to updating the AppDb entry, thanks to those who made the fix happen :).
http://bugs.winehq.org/show_bug.cgi?id=13130
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2009-07-03 12:13:52 --- Closing bugs fixed in 1.1.25.