http://bugs.winehq.org/show_bug.cgi?id=28221
Summary: Severe sound stutter in games using OpenAL Product: Wine Version: 1.3.19 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winealsa.drv AssignedTo: wine-bugs@winehq.org ReportedBy: knaprigt@gmail.com
At least some games using OpenAL (and probably also FMOD) have some severe sound problems with Wine versions newer than 1.3.18. Wile cutscenes seem unaffected the in game sound effects stutter a lot. I've tested this with both Mafia 2 and Bioshock 2 but I wouldn't be surprised if more games using OpenAL are affected. Sadly I have no way of testing if this is an ALSA-only problem or if the same goes for OSS.
After doing a regression test this seems to be a result of the following commit:
======
86e90c92af8134e1e2cd6d79aaa55e62ffe146b2 is the first bad commit commit 86e90c92af8134e1e2cd6d79aaa55e62ffe146b2 Author: Andrew Eikum aeikum@codeweavers.com Date: Fri Apr 22 15:25:21 2011 -0500
winealsa.drv: Add mmdevapi driver.
Maarten Lankhorst also contributed to this driver.
:040000 040000 f318cafc55247f36cafeefcc13e1ad01bde7da9b a2d6a962230f2f0ef6476b510b9f8adee5416c21 M dlls
======
Prior to this commit the sound is fine.
http://bugs.winehq.org/show_bug.cgi?id=28221
LBM knaprigt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=28221
--- Comment #1 from Andrew Eikum aeikum@codeweavers.com 2011-08-29 11:37:19 CDT --- I tested this against Bioshock 1 (which Google tells me uses OpenAL and/or FMOD) and it worked fine. I'll try to find a copy of Bioshock 2, but in the meantime can you give me the information requested at http://wiki.winehq.org/Sound? Having DirectSound in Emulation mode is preferred.
http://bugs.winehq.org/show_bug.cgi?id=28221
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |86e90c92af8134e1e2cd6d79aaa | |55e62ffe146b2
http://bugs.winehq.org/show_bug.cgi?id=28221
--- Comment #2 from LBM knaprigt@gmail.com 2011-09-05 14:53:41 CDT --- Created an attachment (id=36241) --> (http://bugs.winehq.org/attachment.cgi?id=36241) Mafia 2 log running Wine 1.3.18
http://bugs.winehq.org/show_bug.cgi?id=28221
--- Comment #3 from LBM knaprigt@gmail.com 2011-09-05 14:55:43 CDT --- Created an attachment (id=36242) --> (http://bugs.winehq.org/attachment.cgi?id=36242) Mafia 2 log running Wine 1.3.19
http://bugs.winehq.org/show_bug.cgi?id=28221
--- Comment #4 from LBM knaprigt@gmail.com 2011-09-05 14:56:24 CDT --- Created an attachment (id=36243) --> (http://bugs.winehq.org/attachment.cgi?id=36243) Bioshock 2 log running Wine 1.3.18
http://bugs.winehq.org/show_bug.cgi?id=28221
--- Comment #5 from LBM knaprigt@gmail.com 2011-09-05 14:56:52 CDT --- Created an attachment (id=36244) --> (http://bugs.winehq.org/attachment.cgi?id=36244) Bioshock 2 log running Wine 1.3.19
http://bugs.winehq.org/show_bug.cgi?id=28221
--- Comment #6 from LBM knaprigt@gmail.com 2011-09-05 15:02:32 CDT --- (In reply to comment #1)
I tested this against Bioshock 1 (which Google tells me uses OpenAL and/or FMOD) and it worked fine. I'll try to find a copy of Bioshock 2, but in the meantime can you give me the information requested at http://wiki.winehq.org/Sound? Having DirectSound in Emulation mode is preferred.
True, Bioshock 1 is not affected by this and neither is Mafia 1, but for some reason both of their sequels are. As for Emulation vs Full Hardware Acceleration there's no difference. Neither do I notice any difference when tweaking the HelBuflen, SndQueueMax, SndQueueMin, MaxShadowSize, DefaultSampleRate and DefaultBitsPerSample registry keys.
One thing that both applications seem to report from Wine 1.3.19 and onward is however a bunch of the following message:
"fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 6 channels, pretending there's only 2 channels"
I don't know if that's somehow related to the stuttering but that's pretty much the only difference in terminal output that I see between Wine 1.3.18 and 1.3.19, without adding any special debugging levels.
As for my systems specs I'm running a Gentoo system with a 32bit 3.0.1 kernel using Alsa drivers ver. 1.0.24 built into the kernel. Installed OpenAL version is 1.13.
The logs I've added above are the results from running both Mafia 2 and Bioshock 2 with Wine 1.3.18 (working sound) and 1.3.19 (with stuttering) using "WINEDEBUG=+tid,+mmdevapi,+winmm,+dsound,+oss,+alsa,+coreaudio". The logs only cover entering the games main menus where the problem first occurs (moving the mouse over the different menu options).
http://bugs.winehq.org/show_bug.cgi?id=28221
--- Comment #7 from LBM knaprigt@gmail.com 2011-09-09 14:12:49 CDT --- Problem solved, sort of anyway...
By looking at my own logs and your mmdevapi code I noticed that I kept getting Xrun's when the stutter occurred, so I enlarged my Alsa buffer by editing my .asoundrc file and now the stutter is gone.
No idea if you wanna make some kind of adjustment to your code, or if this is even a Wine bug anymore, but at least now we know what caused the problem.
http://bugs.winehq.org/show_bug.cgi?id=28221
sacrediou sacrediou@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sacrediou@yahoo.fr
http://bugs.winehq.org/show_bug.cgi?id=28221
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #8 from joaopa jeremielapuree@yahoo.fr 2013-04-19 22:32:37 CDT --- Still a bug in current wine?
http://bugs.winehq.org/show_bug.cgi?id=28221
Brandon Corujo haku08879@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |haku08879@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=28221
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #9 from Austin English austinenglish@gmail.com --- (In reply to joaopa from comment #8)
Still a bug in current wine?
Abandoned.
https://bugs.winehq.org/show_bug.cgi?id=28221
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Austin English austinenglish@gmail.com --- Closing.