http://bugs.winehq.org/show_bug.cgi?id=15559
Summary: winealsa vs. kotor regression: scratchiness/stutter Product: Wine Version: 1.1.5 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: knan-wine@anduin.net CC: m.b.lankhorst@gmail.com
717df5b2972b3cb998ca5a43279ae2283b117eaa winealsa.drv: Don't hang on last few bytes not played.
... in current git causes a regression for me in Knights of the Old Republic. Music is stuttery, sounds like it plays old/uninitialized data for small fractions of a second.
Reverting it makes sound return to normal.
Doesn't happen in Medieval Total War 2, so seems to be a winmm/waveout-specific regression, dsound unaffected.
Nothing triggers in a warn+wave trace.
http://bugs.winehq.org/show_bug.cgi?id=15559
knan-wine@anduin.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #1 from Austin English austinenglish@gmail.com 2008-10-09 16:09:18 --- A +wave trace would be helpful
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #2 from knan-wine@anduin.net 2008-10-09 16:41:44 --- Created an attachment (id=16561) --> (http://bugs.winehq.org/attachment.cgi?id=16561) +wave trace
http://bugs.winehq.org/show_bug.cgi?id=15559
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piekarzarkadiusz@gmail.com
--- Comment #3 from Dmitry Timoshkov dmitry@codeweavers.com 2008-10-17 02:11:40 --- *** Bug 15645 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15559
Alan Jackson ajackson@bcs.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ajackson@bcs.org.uk
http://bugs.winehq.org/show_bug.cgi?id=15559
Arkadiusz Piekarz piekarzarkadiusz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-10-17 03:00:39 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #5 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-10-17 03:03:13 --- I've also done regression testing and got this:
717df5b2972b3cb998ca5a43279ae2283b117eaa is first bad commit commit 717df5b2972b3cb998ca5a43279ae2283b117eaa Author: Maarten Lankhorst maarten@codeweavers.com Date: Sat Oct 4 12:04:12 2008 +0200
winealsa.drv: Don't hang on last few bytes not played.
Fixes winmm:wave test hanging.
:040000 040000 b58669103ba3743ad67dd567c2ee9dd5d591c529 566930ff46efb40c90159380051d9d90682b298a M dlls
http://bugs.winehq.org/show_bug.cgi?id=15559
Ray Rees rayrees@ameritech.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rayrees@ameritech.net
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #6 from Ray Rees rayrees@ameritech.net 2008-10-18 22:31:24 --- I wonder if this is related to a no sound issue I have with Quake 2. With Wine 1.1.6 the PCM channel mutes immediately after I launch the game. The PCM channel stays muted until I use the mixer to unmute. I must use OSS with Wine for my audio to work. This muting issue does not occur with Wine 1.1.5.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #7 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-10-19 03:11:55 --- Why can't you use Alsa? It works much better than OSS for me. Do you have the latest version (of Alsa)?
Why don't you run a regression test? http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #8 from Ray Rees rayrees@ameritech.net 2008-10-19 17:33:37 --- (In reply to comment #7)
Why can't you use Alsa? It works much better than OSS for me. Do you have the latest version (of Alsa)?
[RR] ALSA does not work with Wine at all. I must use OSS. I would prefer using ALSA although. For Ubuntu, the functioning ALSA audio HW driver is Aureal Vortex au8820 (alsa mixer). For Wine, I must select the OSS Sigmatel STAC9704 (OSS mixer).
Not sure if Ubuntu Hardy (the distro I'm using) is using the latest ALSA.
Why don't you run a regression test? http://wiki.winehq.org/RegressionTesting
[RR] Thanks for the link, but I don't have the time to do that now; I know it will help the Wine community. I also know when I remove 1.1.6 and replace w/ 1.1.5 Quake 2 does not mute the PCM channel. However, I do experience occasional game stuttering that coincides with the audio. :(
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #9 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-10-20 15:58:37 --- Just wanted to tell you I've contacted the author of that commit and he's aware of the bug.
http://bugs.winehq.org/show_bug.cgi?id=15559
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |m.b.lankhorst@gmail.com
--- Comment #10 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-10-20 16:53:39 --- I was aware of the bug, but I should have responded sooner here, my bad.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #11 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-10-21 08:03:40 --- Created an attachment (id=16771) --> (http://bugs.winehq.org/attachment.cgi?id=16771) Patch that might fix playback issues
Does this patch fix the issues?
http://bugs.winehq.org/show_bug.cgi?id=15559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #12 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-10-21 11:00:08 --- (In reply to comment #11)
Created an attachment (id=16771)
--> (http://bugs.winehq.org/attachment.cgi?id=16771) [details]
Patch that might fix playback issues
Does this patch fix the issues?
The sound _seems_ to hang not so often, but still does hang. So it's not fixed yet.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #13 from knan-wine@anduin.net 2008-10-22 13:48:15 --- Tested. No apparent improvement.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #14 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-10-24 06:07:17 --- Just wanted to add - since no one mentioned it before - that this bug affects almost all games and programs using Alsa, not only KOTOR. So it would be nice to change the title of the bug.
http://bugs.winehq.org/show_bug.cgi?id=15559
Ernst Persson ernstp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ernstp@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #15 from Austin English austinenglish@gmail.com 2008-10-24 10:35:47 --- *** Bug 15735 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15559
knan-wine@anduin.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|winealsa vs. kotor |winealsa sound regression: |regression: |scratchiness/stutter in |scratchiness/stutter |multiple games
--- Comment #16 from knan-wine@anduin.net 2008-10-24 12:04:49 --- It doesn't affect everything in my case. Affects Stalker, Kotor and Silent Hunter III, does not affect MTW2 or UFO:Afterlight. Changed title.
http://bugs.winehq.org/show_bug.cgi?id=15559
tyle7@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tyle7@hotmail.com
--- Comment #17 from tyle7@hotmail.com 2008-10-27 16:37:33 --- I get the same symptoms as in wine (stuttering sound) when i run virtualbox OSE 2.0.4 with "host audio driver" set to alsa. Switching audio driver to OSS works there as well.
It seems like this is not a problem only for wine.
This is on Ubuntu 8.10, kernel 2.6.27-7-generic, alsa-base 1.0.17.dfsg-2ubuntu1
http://bugs.winehq.org/show_bug.cgi?id=15559
volker.groeschel@sap.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |volker.groeschel@sap.com
--- Comment #18 from volker.groeschel@sap.com 2008-10-28 04:24:10 --- There is an interesting finding in duplicate bug http://bugs.winehq.org/show_bug.cgi?id=15735
"I run alsa sound through pulseaudio with the default settings in ubuntu intrepid.
Pulse 0.9.10 is from Ubuntu Intrepid and 0.9.13 is from Luke Yelavich's PPA at http://launchpad.net/~themuso/+archive
Distribution: Ubuntu Intrepid Platform: AMD64 PA 0.9.10 default sample type: s16le 2ch 44100Hz
Wine Pulse Result 1.1.5 0.9.10 Fine 1.1.5 0.9.13 Cracks 1.1.6 0.9.10 Cracks 1.1.6 0.9.13 Cracks"
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #19 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-10-28 13:53:37 --- The PulseAudio is causing the problems, not Alsa!
I've stumbled upon this site https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/280534/ where you can clearly see people are experiencing sound problems in many applications, not only Wine. This particular comment - https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/280534/comments/2... - gave me some hints what to do. I've terminated/killed PulseAudio (/usr/bin/pulseaudio -D --log-target=syslog). Then I tested games on Steam with OSS and with Alsa - no crackling, no stuttering :-)
The only thing you have to remember is only one application can play sound at any given time. Especially, you have to disable sound driver in Winecfg before you launch Steam, then enable sound after it loads and play any game.
Wine 1.1.7, Ubuntu 8.10, Metacity, Alsa 1.0.17, PulseAudio 0.9.10. Tested with Team Fortress 2 and Everyday Shooter.
BTW I thought PulseAudio would be fixed in Ubuntu 8.10 :-/
http://bugs.winehq.org/show_bug.cgi?id=15559
Dennis Fagan dfagan1@pride.hofstra.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dfagan1@pride.hofstra.edu
--- Comment #20 from Dennis Fagan dfagan1@pride.hofstra.edu 2008-10-29 01:59:04 --- I am also currently experiencing this issue with ubuntu 8.04, using ALSA without the presence of pulseaudio.
The only time crackling happens tho, is when Directsound's hardware acceleration is set to Emulation, if it is set to anything else, other audio quirks happen.
http://bugs.winehq.org/show_bug.cgi?id=15559
Florian Friedrich friedrich@hooster.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |friedrich@hooster.de
--- Comment #21 from Florian Friedrich friedrich@hooster.de 2008-11-01 02:42:55 --- Same problem here with Lord of the Rings Online under Ubuntu 8.10.
Wine 1.1.4 -> Works Wine 1.1.7 -> Cracks Wine 1.1.7 with the patch removed -> Works
By the way, I have found, that the line, which causes the sound to crack is the line 293 in dlls/winealsa.drv/waveout.c which is:
wwo->dwPlayedTotal += lpWaveHdr->reserved - wwo->dwPlayedTotal;
Is this really right? Because this is just a harder way to write:
wwo->dwPlayedTotal = lpWaveHdr->reserved;
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #22 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-11-01 06:42:15 --- Friedrich, I had attached a patch earlier, does this fix the crackling for you?
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #23 from Florian Friedrich friedrich@hooster.de 2008-11-01 08:41:30 --- Ok, I have tested the patch. It does NOT fix the bug. For now, only removing the above mentioned line of code fixed the bug for me.
http://bugs.winehq.org/show_bug.cgi?id=15559
Jeff Schornick winehq@schornick.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@schornick.org
http://bugs.winehq.org/show_bug.cgi?id=15559
Matteo Modesti mattemod@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mattemod@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15559
Reece Dunn msclrhd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |msclrhd@gmail.com
--- Comment #24 from Reece Dunn msclrhd@gmail.com 2008-11-19 17:16:43 --- I have also tested the patch for the related bug 16015. It does not work their either :(.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #25 from Reece Dunn msclrhd@gmail.com 2008-11-20 02:02:39 --- Alright, I have tracked down the Cepstral SwiftTalker hang and the fix is to revert the patch :)! Only the lines: - if (state == SND_PCM_STATE_XRUN) - snd_pcm_start(wwo->pcm); seem to affect the fix; I can keep the others and this will work.
Tracking invalid states as well, I get the following with WINEDEBUG=+wave
trace:wave:wodPlayer_NotifyCompletions still playing 0x6fadf0 (28672/27146) trace:wave:wodPlayer waiting 21ms (21,34) warn:wave:wodUpdatePlayedTotal Unexpected state (4) while updating Total Played, resetting trace:wave:wodNotifyClient wMsg = 0x03bd dwParm1 = 6FADF0 dwParam2 = 0000 trace:wave:wodPlayer_NotifyCompletions Empty queue trace:wave:wodPlayer waiting 21ms (21,4294967295) warn:wave:wodUpdatePlayedTotal Unexpected state (4) while updating Total Played, resetting ... trace:wave:ALSA_wodMessage (0, WODM_UNPREPARE, 7EC34B1B, 006F8D90, 00000020); trace:wave:ALSA_wodMessage (0, WODM_CLOSE, 7EC34B1B, 00000000, 00000000);
The interesting thing here is that I get about 3-4 NotifyCompletion Empty queue, waiting 21ms, unexpected state (4) cycles before getting the first WODM_UNPREPARE (I get 4 of these) and the WODM_CLOSE.
Also of interest here is the wodNotifyClient sending a WOM_DONE (0x03bd) message before that sequence.
The final key thing of interest is that if I use WINEDEBUG=alsa or WINEDEBUG=wave (even redirecting stderr to a file), the application does not hang.
Putting all of this together, I believe that this fix for the winmm:wave tests is invalid. The test - in response to a wodNotifyClient(wMsg = WODM_CLOSE) should send the WODM_CLOSE and possibly the WODM_UNPREPARE messages (before the WODM_CLOSE) to tell the wave audio handler "I'm done!".
So here, state 4 *is* a valid state for wodUpdatePlayedTotal, but only between sending a WODM_CLOSE notification and receiving a WODM_CLOSE message.
I don't know if this solves the stuttering sound issue or how to go about correcting the winmm:wave tests, though.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #26 from Reece Dunn msclrhd@gmail.com 2008-11-20 14:37:05 --- So obviously, reverting the patch has fixed stuttering audio on games (tested with Azguard Defence by Oberon Media) :).
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #27 from Reece Dunn msclrhd@gmail.com 2008-11-24 16:18:15 --- *** Bug 16015 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #28 from Reece Dunn msclrhd@gmail.com 2008-11-24 16:21:04 --- The patch to fix this is now in the git source tree. Could you verify that the fix works and then close the bug.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #29 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-11-24 17:17:39 --- It doesn't work for me, sound crackles a lot. But I messed up with PulseAudio lately, so maybe it's just me.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #30 from Reece Dunn msclrhd@gmail.com 2008-11-24 17:22:49 --- (In reply to comment #29)
It doesn't work for me, sound crackles a lot. But I messed up with PulseAudio lately, so maybe it's just me.
Are you using the latest git (not wine 1.1.9, as the fix missed that release)?
Also, what version of PulseAudio are you using and what did you do to mess it up? This would help when setting up a configuration that can reproduce the issue.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #31 from Florian Friedrich friedrich@hooster.de 2008-11-25 03:42:21 --- (In reply to comment #28)
The patch to fix this is now in the git source tree. Could you verify that the fix works and then close the bug.
I have tried it but it is even worse than before.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #32 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-11-25 03:51:28 --- (In reply to comment #30)
(In reply to comment #29)
It doesn't work for me, sound crackles a lot. But I messed up with PulseAudio lately, so maybe it's just me.
Are you using the latest git (not wine 1.1.9, as the fix missed that release)?
Also, what version of PulseAudio are you using and what did you do to mess it up? This would help when setting up a configuration that can reproduce the issue.
I'm sorry, I forgot to write about it. I used Wine 1.1.9-48-g79f24b5 on Ubuntu 8.10, PulseAudio 0.9.10-2ubuntu9.1, libasound2 1.0.17a-0ubuntu4.
I've experimented with newer versions of PulseAudio (0.9.13) and libasound2 (1.0.18) from Ubuntu 9.04, because I've read they fixed scratchiness, but it was even worse. I've also deleted /etc/X11/Xsession.d/70pulseaudio at some point, but it seems it is restored now.
I've also tried different settings for quality in Winecfg (they're default now) and changed them in System -> Preferences -> Sounds (now everything there is set to ALSA).
Games I've tried were Everyday Shooter (Steam), Peggle Extreme (Steam) and IcyTower.
http://bugs.winehq.org/show_bug.cgi?id=15559
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #33 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-11-25 08:48:45 --- If the solution is to remove
if (state == SND_PCM_STATE_XRUN) snd_pcm_start(wwo->pcm);
then Reece Dunn has fixed this in current wine. Closing bug.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #34 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-11-25 10:12:42 --- (In reply to comment #33)
If the solution is to remove
if (state == SND_PCM_STATE_XRUN) snd_pcm_start(wwo->pcm);
then Reece Dunn has fixed this in current wine. Closing bug.
Two people confirmed this patch didn't fix the problem, and even made it worse. Looks like that's not the solution! How can you close the bug in this situation?
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #35 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-11-25 10:19:21 --- Comparing "winealsa.drv: Don't hang on last few bytes not played." and "winealsa: Calculate the delay correctly as snd_pcm_delay is not reliable in this context." shows that not everything was reverted to a pre-wine-1.1.5 state.
http://source.winehq.org/git/wine.git/?a=commitdiff;h=717df5b2972b3cb998ca5a...
http://source.winehq.org/git/wine.git/?a=commitdiff;h=ef0069cbf5dd7c65089aa9...
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #36 from Alan Jackson ajackson@bcs.org.uk 2008-11-25 10:24:13 --- I can confirm that, for me at least, the patch DOES NOT fix the problem, so I think this needs reopening.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #37 from Reece Dunn msclrhd@gmail.com 2008-11-25 11:29:03 --- There are two changes. The first [1] introduced by Maarten:
+ if (state == SND_PCM_STATE_XRUN) + snd_pcm_start(wwo->pcm);
that caused the initial issues. The second [2], introduced by me:
+ int err; - snd_pcm_delay(wwo->pcm, &delay); + avail = snd_pcm_avail_update(wwo->pcm); + err = snd_pcm_hw_params_get_buffer_size(wwo->hw_params, &buf_size); + delay = buf_size - avail;
To understand the issue, this is noticeable on machines running Ubuntu 8.10 that have Intel HDA audio cards going through the PulseAudio ALSA layer that came with Ubuntu. This is without doing anything to the setup apart from updating Ubuntu to get bug fixes from there. The issue is noticeable on various games such as Peggle Deluxe.
The observed behaviour is: (a) without [1] or [2] -- sound is good (no stuttering); (b) with [1] only -- stuttering, Cepstral SwiftTalker hangs second time you listen to some text; (c) with [2] only -- stuttering is even worse, SwiftTalker does not hang.
On IRC it was deemed that [2] is the correct way to calculate the delay value.
Can the people experiencing the issues try Wine with the 3 configurations in (a) - (c) and report that the stuttering behaviour is as stated above. This is even if you have tried it with configuration (a) before so that there is a control test environment.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #38 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-11-25 12:29:27 --- I've just tested it and the results are:
Wine 1.1.9-91-gf552c90 (both commits for winealsa) Sound is very bad, very "dirty".
Wine 1.1.6 (one commit for winealsa) Sound is bad, sometimes it's fine but too slow.
Wine 1.1.5 (no commits for winealsa) Sound is perfect!
Tested on Icytower 1.3, each time with different wineprefixes.
Full log from installation and lauch of the game is here - http://pastebin.com/f93c5f2d
http://bugs.winehq.org/show_bug.cgi?id=15559
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |
--- Comment #39 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-11-25 12:32:53 --- Reopened.
"too slow" probably means it underruns a lot.
http://bugs.winehq.org/show_bug.cgi?id=15559
mokrad mokrad@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mokrad@gmail.com
--- Comment #40 from mokrad mokrad@gmail.com 2008-11-25 14:48:33 --- I installed the last git version. I have always the bug. My config :ubuntu 8.10 chipset audio ADI AD2000B (game tested : Team Fortress 2) Nota: My solution to have the sound without scratchy is using OSS and launch padsp winecfg then padsp steam.exe
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #41 from mokrad mokrad@gmail.com 2008-11-26 02:15:17 ---
Nota: My solution to have the sound without scratchy is using OSS and launch padsp winecfg then padsp steam.exe
Just to clarify my nota: padsp winecfg then padsp wine steam.exe
http://bugs.winehq.org/show_bug.cgi?id=15559
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #42 from Vitaliy Margolen vitaliy@kievinfo.com 2008-11-26 14:43:49 --- This is invalid - not a bug in Wine bug pulseaudio. The original problem was fixed. The remaining problem is outside Wine can can't be fixed by Wine.
Closing fixed (original problem).
http://bugs.winehq.org/show_bug.cgi?id=15559
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |
--- Comment #43 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-11-26 14:45:18 --- Sigh, the real fix is sent in and should be ingit-wine tomorrow, not marking fixed yet
http://bugs.winehq.org/show_bug.cgi?id=15559
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #44 from Dan Kegel dank@kegel.com 2008-11-30 15:01:19 --- Looks like the patch wasn't sent until today? http://www.winehq.org/pipermail/wine-patches/2008-November/065324.html
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #45 from Reece Dunn msclrhd@gmail.com 2008-11-30 15:48:54 --- (In reply to comment #44)
Looks like the patch wasn't sent until today? http://www.winehq.org/pipermail/wine-patches/2008-November/065324.html
I sent a patch (http://source.winehq.org/git/wine.git/?a=commitdiff;h=ef0069cbf5dd7c65089aa9...) that fixed some issues, but didn't fix this issue (default configured Ubuntu 8.10 with PulseAudio 0.9.10).
The patch I sent today was based on the analysis on IRC by ernst. I am currently using Ubuntu 8.10 with PulseAudio 0.9.10 and have reproduced this bug and tested the fix.
The analysis on IRC was that while the sound is fine on PulseAudio 0.9.10, there are still issues with version 0.9.13.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #46 from Dan Kegel dank@kegel.com 2008-11-30 18:54:20 --- Thanks. Your patch today fixes Kidpix audio, but it's still not enough to fix the pulseaudio problem described in bug 16237.
http://bugs.winehq.org/show_bug.cgi?id=15559
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adam@tpetaccia.com
--- Comment #47 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-12-01 00:29:27 --- *** Bug 16297 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #48 from Ernst Persson ernstp@gmail.com 2008-12-01 00:40:29 --- I did send the patch on the 26:th to wine-patches@winehq.org Is it stuck in moderation perhaps? Anyway, great that the change will be taken.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #49 from Austin English austinenglish@gmail.com 2008-12-01 07:59:10 --- Reece's patch was committed today. Please retest.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #50 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-12-01 08:59:32 --- wine-1.1.9-252-ga307243
Peggle Extreme - sounds fine. World of Goo - sounds fine. Audiosurf - sounds fine. Team Fortress 2 - the menu music plays ok, with no distortion, but I can hear cracles from time to time, like every 3 seconds. Everyday Shooter - the menu music plays with no distortion, but with a "reverb" effect, the sound repeats itself like an echo.
All games on Steam.
I've also noticed various sound effects, like i.e. menu items in TF2 and PE or when I collect a block in Audiosurf - are played half a second too late. It looks like this: I move my mouse on a menu item, there is silence for half a second and then there is a sound played.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #51 from mokrad mokrad@gmail.com 2008-12-01 12:40:56 --- wine --version : wine-1.1.9-252-ga307243 pulseaudio 0.9.10 alsa : 1.0.18a ubuntu 8.10
Works fine with this version on Team Fortress 2 Good job ;-)
http://bugs.winehq.org/show_bug.cgi?id=15559
Maarten Lankhorst m.b.lankhorst@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #52 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-12-03 11:36:07 --- Fixed
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #53 from Adam Petaccia adam@tpetaccia.com 2008-12-03 14:17:59 --- Please reopen, this bug still affects Warcraft III for me; reverting the original patch still fixes.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #54 from Reece Dunn msclrhd@gmail.com 2008-12-03 14:29:08 --- Adam: Are you using the latest git? If so, are you using pulseaudio 0.9.13? Version 0.9.10 of pulseaudio should work, but apparently there are still issues with 0..9.13.
Could you give some more information about the configuration (distribution name & version, pulseaudio version, ALSA version, whether you are using an Intel HDA soundcard, if you have done anything beyond the stock distribution install/updates to fix any sound issues you may have experienced).
Do other games work, like World of Goo or Peggle? I have these as well as Warcraft III on an up-to-date Ubuntu 8.10 (using the default configuration) with pulesaudio 0.9.10; the sound in games is working for me now (with current git).
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #55 from Adam Petaccia adam@tpetaccia.com 2008-12-03 18:30:45 --- Created an attachment (id=17628) --> (http://bugs.winehq.org/attachment.cgi?id=17628) WINEDEBUG=wave wine war3
I'm using Ubuntu 8.10, pulse audio version 0.9.10, with "Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)" sound card. Now the sounds just seem to continuously "echo". The only 3rd party repos I have are for Wine (not installed, I usually use git) and Nouveau, I also have a custom build of ffmpeg. Compressed because its over 1MB.
http://bugs.winehq.org/show_bug.cgi?id=15559
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #56 from Alexandre Julliard julliard@winehq.org 2008-12-05 11:15:53 --- Closing bugs fixed in 1.1.10.
http://bugs.winehq.org/show_bug.cgi?id=15559
Rafał Mużyło galtgendo@o2.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |galtgendo@o2.pl
--- Comment #57 from Rafał Mużyło galtgendo@o2.pl 2008-12-05 12:50:49 --- wine-1.1.10 alsa-1.0.18 pulseaudio-0.9.13 (with git patches)
Now sound seems to just work. (I'm still changing snd_pcm_delay lines to snd_pcm_avail blocks in dscapture.c and dsoutput.c, but I'm not sure if that's correct anyway - probably not, but for the moment I'll keep doing that)
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #58 from Maarten Lankhorst m.b.lankhorst@gmail.com 2008-12-05 14:12:20 --- For pulseaudio changing the ds*.c files is useless, that code is simply not run by pulseaudio.. :/
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #59 from Rafał Mużyło galtgendo@o2.pl 2008-12-05 14:33:20 --- Even if you have: pcm.!default { type pulse } ctl.!default { type pulse }
in /etc/asound.conf ?
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #60 from Rafał Mużyło galtgendo@o2.pl 2008-12-05 15:28:04 --- Perhaps you're right, but in a different way: with WINEDEBUG=+dsalsa I seem to always get: trace:dsalsa:wodDsCreate driver created warn:dsalsa:wodDsCreate MMAP not supported for this device, falling back to waveout, should be harmless
so those changes have probably no effect after all.
http://bugs.winehq.org/show_bug.cgi?id=15559
Casey caseyjp1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |caseyjp1@gmail.com
--- Comment #61 from Casey caseyjp1@gmail.com 2008-12-05 19:25:26 --- This did NOT fix the issues on this system. It made it worse. The sound/music for EVE online was scratchy with 1.1.9, but as of 1.1.10 it now sounds like everything is being played through a distortion chamber AND scratchy/hitching.
system ubuntu 8.10 wine 1.1.10 winecfg using alsa for sound
No difference using pasuspender as a prefix or not at this point.
hardware: nforce4 motherboard amd 3800 x2 dualcore nvidia ck804 sound card (onboard) nvidia 8800gts
ubuntu 8.10 pulseaudio .9.10 wine 1.1.10 from repository. winecfg set to alsa.
Also seeing this error when running winecfg from the command line following dist update to new version of wine: E: shm.c: shm_open() failed: Read-only file system E: shm.c: shm_open() failed: Read-only file system E: shm.c: shm_open() failed: Read-only file system
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #62 from Rafał Mużyło galtgendo@o2.pl 2008-12-05 20:09:48 --- The last block of errors means probably that your pulseaudio is incorrectly set up.
Alsa version is important too (both lib and driver), as during pulseaudio development quite a few bugs in alsa were discovered (some of them were not fixed till 1.0.18, after all 0.9.12 (or was it 0.9.13) requires alsa of at least 1.0.17a.
Anyway, can any of the people complaining name a small, freeware app that demonstrates the error. I'd like to see, if the problem is reproducible for me. After all, point-and-click and turn-based strategies may not be the best test cases (that's what I'm using).
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #63 from Casey caseyjp1@gmail.com 2008-12-05 23:20:04 --- (In reply to comment #62)
The last block of errors means probably that your pulseaudio is incorrectly set up.
Alsa version is important too (both lib and driver), as during pulseaudio development quite a few bugs in alsa were discovered (some of them were not fixed till 1.0.18, after all 0.9.12 (or was it 0.9.13) requires alsa of at least 1.0.17a.
Anyway, can any of the people complaining name a small, freeware app that demonstrates the error. I'd like to see, if the problem is reproducible for me. After all, point-and-click and turn-based strategies may not be the best test cases (that's what I'm using).
There were no errors until installing wine 1.1.10. Prior version of wine 1.1.9 had no errors, and although it DID have the scratch/hiss described in this bug, it was nowhere near as problematic as the sound is now.
Using padsp and OSS for winecfg is currently the ONLY way to get this application (EVE-Online) to behave somewhat normally, but the latencies introduced by using the oss solution is not optimal at all in a purely PVP environment.
As to the request for a small freeware application, no. EVE, however, IS a free download and has 14 day trial available with no credit card usage.
The ONLY change to my system was to upgrade to wine 1.1.10. alsa version: 1.0.17dfsg
http://bugs.winehq.org/show_bug.cgi?id=15559
John Beaulieu john.beaulieu@comcast.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |john.beaulieu@comcast.net
--- Comment #64 from John Beaulieu john.beaulieu@comcast.net 2008-12-06 08:21:03 --- This bug is definitely not resolved, if you need an app to test it with try winamp, the fix made it worse. I'm experiencing stuttering and garbled sound in WoW, EQ2, Winamp and several other apps. I'm using a fully updated Ubunto 8.10 with wine 1.1.10. The only things that get sound to work in affected apps are running padsp winecfg and selecting oss or killing pulseaudio. These are not optimal solutions.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #65 from Casey caseyjp1@gmail.com 2008-12-06 17:33:21 --- I discovered the error: E: shm.c: shm_open() failed: Read-only file system E: shm.c: shm_open() failed: Read-only file system E: shm.c: shm_open() failed: Read-only file system
was due to this change to fstab:
tmpfs /dev/shm tmpfs defaults,ro 0 0
which is a recommended security change.
Re-commenting that line in fstab removed the error when running wine.
1.1.9 had NO issues with this line in fstab. 1.1.10 does.
The issues with sound remain. This bug ain't fixed.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #66 from Matteo Modesti mattemod@gmail.com 2008-12-06 22:02:15 --- (In reply to comment #65)
tmpfs /dev/shm tmpfs defaults,ro 0 0
Re-commenting that line in fstab removed the error when running wine.
Don't comment that line, just remove that ",ro" and maybe add a 'size' argument; for example:
tmpfs /dev/shm tmpfs defaults,size=64m 0 0
http://bugs.winehq.org/show_bug.cgi?id=15559
Antoine Mazeas antoine@karthanis.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |antoine@karthanis.net
http://bugs.winehq.org/show_bug.cgi?id=15559
Joni L-H jonilh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jonilh@gmail.com
--- Comment #67 from Joni L-H jonilh@gmail.com 2008-12-07 20:51:21 --- The stuttering sound was solved in Oblivion for me in WINE 1.1.10. But remains in EQ2. But changed somewhat. Now in EQ2 its more of a clean echo. Very anoying echo.
http://bugs.winehq.org/show_bug.cgi?id=15559
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|FIXED |
--- Comment #68 from Dan Kegel dank@kegel.com 2008-12-07 21:14:08 --- Also affects Mia's Math adventure; 1.1.9 had scratchiness, 1.1.10 has the echo. See bug 16378.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #69 from Ernst Persson ernstp@gmail.com 2008-12-08 23:20:55 --- World of warcraft, warcraft 3 and peggle deluxe all work perfectly with wine 1.1.10 here. (No padsp, wine is using alsa and alsa is using pulseaudio..)
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #70 from Dan Kegel dank@kegel.com 2008-12-08 23:26:01 --- How about winamp - can you check if that works now for you, too?
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #71 from Reece Dunn msclrhd@gmail.com 2008-12-09 01:50:06 --- WinAmp works for me. It takes a long time to start playing, but when it does, it plays fine (using the Lama test sound file). I haven't tried a dsound application yet.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #72 from Antoine Mazeas antoine@karthanis.net 2008-12-09 03:56:11 --- Hi,
It's getting obvious that the issue is going on a per app basis. Still, I'm mostly experiencing distorted sound:
- WoW: OK - Guild Wars: OK - TF2, HL²: OK
But still:
- Rune: echo + scratchiness - Call of Cthulhu Dark corners of the earth: idem - Diablo II: idem - Overlord: idem
Using ALSA 1.0.17a through Pulseaudio 0.9.10
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #73 from Casey caseyjp1@gmail.com 2008-12-09 04:50:49 --- (In reply to comment #72)
Hi,
It's getting obvious that the issue is going on a per app basis. Still, I'm mostly experiencing distorted sound:
- WoW: OK
- Guild Wars: OK
- TF2, HL²: OK
But still:
- Rune: echo + scratchiness
- Call of Cthulhu Dark corners of the earth: idem
- Diablo II: idem
- Overlord: idem
Using ALSA 1.0.17a through Pulseaudio 0.9.10
I tend to agree with that. (per app)....BUT, none of the apps I've tried have ANY issue with OSS using padsp. The problem with that, again, is that its not by any stretch an optimal solution for a long term fix.
I'm a user, not a dev, but it seems to me that the wine folks and the pulse folks should stop the bickering, get together and fix this crap. I don't mean to sound callous, but every mail list I've read regarding pulseaudio and wine is more a finger pointing contest rather than an attempt at a longer term solution.
Pulseaudio ain't going away folks, and having to fumble through winecfg and surfing maillists to find work arounds isn't gonna win many fans when all that's wanted is to use the app of choice to play a game or listen to tunes or what have ya.
My thoughts on it anyway, and now off my soapbox.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #74 from Reece Dunn msclrhd@gmail.com 2008-12-09 08:36:46 --- I think we can all agree that fixing the issues noted here is important. The difficulty is in reproducing the issues in a reliable way.
I have a Ubuntu 8.10 install with PulseAudio 0.9.10 and no modifications to the base audio configuration. For me, the fixes that have gone in to Wine have fixed audio *on my machine*. I have tried Azguard Defense, Diablo II, WarCraft III and other games, but have not reproduced the new errors that people are experiencing.
Likewise, Maarten has said that he has not been able to reproduce the audio glitches. If the developers cannot reproduce the problems, it is difficult for them to investigate and fix them.
As far as I am aware, there are 2 known areas where there are audio problems: 1. pulseaudio 0.9.13 - this has been reported to cause problems; 2. applications using DirectSound - this has been reported in bug 16378 and appears to exhibit itself as an echoing sound.
For the first issue, I am aiming to perform a regression test on the pulseaudio code, but I am having some issues building 0.9.13 from source at the moment.
For the second issue, I am on the lookout for a DirectSound game that has a demo that can be installed, so I can test it and investigate.
Thank you for your patience, - Reece
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #75 from Rafał Mużyło galtgendo@o2.pl 2008-12-09 09:00:52 --- Well, 0.9.13 doesn't seem to create any problems for me, but you should know that that official tarball is broken without a few git-patches (best check Redhat src rpms).
It's possible that sound card plays a role here: I'm on AC'97 (*intel8x0).
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #76 from Arkadiusz Piekarz piekarzarkadiusz@gmail.com 2008-12-09 11:22:30 --- (In reply to comment #74)
As far as I am aware, there are 2 known areas where there are audio problems:
- pulseaudio 0.9.13 - this has been reported to cause problems;
- applications using DirectSound - this has been reported in bug 16378 and
appears to exhibit itself as an echoing sound. (...) For the second issue, I am on the lookout for a DirectSound game that has a demo that can be installed, so I can test it and investigate.
Thank you for your patience,
- Reece
Download Puzzle Quest: Challenge of the Warlords demo from here - http://www.infinite-interactive.com/puzzlequest/demo.php It's around 14 MB.
I has the echo sound effect already in the menu. Tested with Wine 1.1.10-130-gfba5c4f.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #77 from Rafał Mużyło galtgendo@o2.pl 2008-12-09 16:19:21 --- First a correction to comment 76: web installer is 14MB, the demo itself is additional 34MB.
Yes, it does seem to stutter. waveout vs dsound ? No idea yet.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #78 from Reece Dunn msclrhd@gmail.com 2008-12-09 17:13:18 --- Thanks for the Puzzle Quest link. I am experiencing the stuttering on that game, so it looks like there is at least one sound issue that relates to dsound.
http://bugs.winehq.org/show_bug.cgi?id=15559
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.net
--- Comment #79 from Jörg Höhle hoehle@users.sourceforge.net 2008-12-09 17:16:26 --- Here are my findings about recent radio-like noise mixins I get to hear. I'm using yet another application, using DirectSound, so it seems. wine-1.1.10 makes no difference vs. 1.1.9. You can download the 47MB demo of The Nations / Die Völker II at http://www.jowood.com/?lang=de&site=2&gameid=voelker2&iid=Demo
I'm using Ubuntu Intrepid with + latest updates as of today, + pulseaudio 0.9.10-2ubuntu9 + Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
Using or not (pactl exit) pulseaudio makes no difference to the sound glitches I hear.
Using OSS works fine.
Much to my surprise, I also found out that using ALSA with: + driver emulation + HW accel. emul. (otherwise a hissing sound is heard / mixed in) + at 8bit, 22050Hz works fine with 1.1.10 in Ubuntu Intrepid, with or without pulseaudio. Using different settings in winecfg (e.g. 44100/16) produces various noise mixins. But is this really using ALSA? WINEDEBUG=+dsalsa comes out empty in this case.
Using ALSA instead of OSS prevents the bug where the PCM mixer mutes from showing up.
http://bugs.winehq.org/show_bug.cgi?id=15559
Julian Rüger jr98@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jr98@gmx.net
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #80 from Rafał Mużyło galtgendo@o2.pl 2008-12-11 15:23:40 --- The patch in bug 16416 comment 6 seems to fix the problem.
BTW., the German demo is no longer there, it's just the English one.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #81 from Jörg Höhle hoehle@users.sourceforge.net 2008-12-13 17:05:07 --- Here are my some of my test results about the patch in bug 16416 comment 6, using Ubuntu Intrepid with wine-1.1.0 and pulseaudio. It indeed appears to fix sound issues in at least 2 games: (pa means PulseAudio; DL means a download is available; all apps are in AppDB) - "Luka(DL) und das geheimnisvolle Silberpferd" sounds perfect, despite using dsound (patch not needed). - "CrazyMachines Operation Brainstorm"(DL) sounds perfect (dito). - "Die Völker 2/The Nations" radio-like hissing noise mixin with pa, but not with direct sound emulation toggle in winecfg (cf. comment #79); perfect with patch - Sierra's Pharaoh stutters with pa, but not with emulation (+dsound logs in both cases); perfect with patch
One wonders how such a tiny patch about computing a 10ms fragment length can have that dramatic impact.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #82 from knan-wine@anduin.net 2008-12-13 18:08:35 --- I originally reported this one, and I can't reproduce anymore with the same set of games and current git (1.1.10+).
http://bugs.winehq.org/show_bug.cgi?id=15559
Dan Farina drfarina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |drfarina@gmail.com
--- Comment #83 from Dan Farina drfarina@gmail.com 2008-12-14 18:43:25 --- (In reply to comment #81)
One wonders how such a tiny patch about computing a 10ms fragment length can have that dramatic impact.
I can also attest that the patch you linked to (http://www.winehq.org/pipermail/wine-patches/2008-December/065755.html) has completely solved crackling sound and slow video replay issues in Dawn of War: Soulstorm.
I applied the patch to bd25af9dba280e3d80f3080140f2f5ab2cd0dfb3, which exhibited all the usual symptoms of this bug.
http://bugs.winehq.org/show_bug.cgi?id=15559
Carl Chatfield carlchatfield@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |carlchatfield@gmail.com
--- Comment #84 from Carl Chatfield carlchatfield@gmail.com 2008-12-25 21:46:26 --- i have an unmodified git with wine-1.1.11-135-gcb08534. not that this bug needs confirming, but id just like to say that it is present in starcraft brood war, and very likely also the demo although i have not tested this. the reason i thought it was worth mentioning was because starcraft is a rather popular game and perhaps some devs would have it installed. Wine 1.0 works fine.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #85 from Reece Dunn msclrhd@gmail.com 2008-12-26 03:39:21 --- Carl: BroodWars audio is working for me. I'm on Ubuntu Jaunty (9.04 alpha 1) with PulseAudio 0.9.13.
What are you running on? Could you also do a regression test? http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #86 from Carl Chatfield carlchatfield@gmail.com 2008-12-26 09:55:38 --- im sorry i dont exactly know how to use git, and i just tried to do a regression test and honestly i dont know whether or not it worked. i suspect the problem is in dlls/dsound/primary.c with fraglen ()
i tried to bisect this file only, but it still recompiled the entire wine src. I dont have enough time to do a full regression test right now if it will require 30 minute compiles, sorry. If no one else confirms it i will have some time in about 3 days. I need a ps3 cluster :(
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #87 from Reece Dunn msclrhd@gmail.com 2008-12-26 09:59:29 --- Carl: ok. Do you know what Linux distribution & version you are using (e.g. Ubuntu 8.10)?
http://bugs.winehq.org/show_bug.cgi?id=15559
Jamieson Christian jamiesonc@tds.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jamiesonc@tds.net
--- Comment #88 from Jamieson Christian jamiesonc@tds.net 2008-12-26 23:57:27 --- I experienced a soft clicking sound (every half second, kind of a "flicking paper" sound) when playing Half Life 2 under Wine 1.1.8. The problem did not manifest in the stable release, Wine 1.0.1. The problem still existed as recently as Wine 1.1.11.
However, the problem NO LONGER PRESENTS in Half Life 2 under a git from today (wine-1.1.11-153-g424cb27). The most likely cause of the fixed behavior is the Dec. 22 commit from Reece: "dsound: Correct the dsound fraglen calculations." Thanks Reece!
Ubuntu 8.10 (Intrepid) ALSA 1.0.17 PulseAudio 0.9.10 (I have not made any modifications to the default audio setup for Ubuntu 8.10.)
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #89 from Reece Dunn msclrhd@gmail.com 2008-12-27 03:08:30 --- Jamieson: Thanks.
That would explain why Carl is still experiencing sound problems. Carl, does updating to latest git (or to my fix) address your sound problems?
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #90 from Carl Chatfield carlchatfield@gmail.com 2008-12-28 08:58:41 --- im afraid not, i just compiled wine-1.1.11-184-gb15ba76 and the sound still doesnt work properly. i forgot to mention that i use debian 64 bit stable (lenny). again i have no time to do a full regression test, but i had a tiny play and changed fraglen () to return twice its usual return value. When the starcraft starts it now plays a split second (most likely 1/10 th of a second) of music correctly before crashing. I hope this is of help, im afraid im very busy at the moment, and i must set some time to learn how to use git.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #91 from Carl Chatfield carlchatfield@gmail.com 2008-12-28 09:01:15 --- sorry, slight correction i use debian testing, not stable. whoops.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #92 from Reece Dunn msclrhd@gmail.com 2008-12-28 09:20:50 --- Carl: that's ok. Maybe what you are seeing is bug 16607 (there is a patch attached there).
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #93 from Carl Chatfield carlchatfield@gmail.com 2008-12-28 09:28:50 --- yes, thank you after applying that patch sound works again.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #94 from Dan Farina drfarina@gmail.com 2008-12-30 00:06:34 --- (In reply to comment #83)
(In reply to comment #81)
One wonders how such a tiny patch about computing a 10ms fragment length can have that dramatic impact.
I can also attest that the patch you linked to (http://www.winehq.org/pipermail/wine-patches/2008-December/065755.html) has completely solved crackling sound and slow video replay issues in Dawn of War: Soulstorm.
I applied the patch to bd25af9dba280e3d80f3080140f2f5ab2cd0dfb3, which exhibited all the usual symptoms of this bug.
Fixed as of ce06de420874b9983324508f8257a580fee341ca for Dawn of War: Soulstorm
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #95 from Aaryna Delsorou delsorou@gmail.com 2009-01-13 03:11:35 --- Created an attachment (id=18668) --> (http://bugs.winehq.org/attachment.cgi?id=18668) +wave output from ALSA and OSS for app Culpa Innata
I get a strikingly similar, but slightly less severe output from using OSS in Winecfg. Not sure if this is a coincidence or not.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #95 from Aaryna Delsorou delsorou@gmail.com 2009-01-13 03:11:35 --- Created an attachment (id=18668) --> (http://bugs.winehq.org/attachment.cgi?id=18668) +wave output from ALSA and OSS for app Culpa Innata
I get a strikingly similar, but slightly less severe output from using OSS in Winecfg. Not sure if this is a coincidence or not.
--- Comment #96 from Aaryna Delsorou delsorou@gmail.com 2009-01-13 03:19:56 --- Created an attachment (id=18669) --> (http://bugs.winehq.org/attachment.cgi?id=18669) +wave output from ALSA and OSS for app Culpa Innata
I get a strikingly similar, but slightly less severe output from using OSS in Winecfg. Not sure if this is a coincidence or not.
ALSA log is in the top half of the file, OSS log is in the bottom half of the file
http://bugs.winehq.org/show_bug.cgi?id=15559
Aaryna Delsorou delsorou@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |delsorou@gmail.com
--- Comment #95 from Aaryna Delsorou delsorou@gmail.com 2009-01-13 03:11:35 --- Created an attachment (id=18668) --> (http://bugs.winehq.org/attachment.cgi?id=18668) +wave output from ALSA and OSS for app Culpa Innata
I get a strikingly similar, but slightly less severe output from using OSS in Winecfg. Not sure if this is a coincidence or not.
--- Comment #96 from Aaryna Delsorou delsorou@gmail.com 2009-01-13 03:19:56 --- Created an attachment (id=18669) --> (http://bugs.winehq.org/attachment.cgi?id=18669) +wave output from ALSA and OSS for app Culpa Innata
I get a strikingly similar, but slightly less severe output from using OSS in Winecfg. Not sure if this is a coincidence or not.
ALSA log is in the top half of the file, OSS log is in the bottom half of the file
--- Comment #97 from Aaryna Delsorou delsorou@gmail.com 2009-01-13 03:42:21 --- My apologies on the double attachment. Did not intend to attach two copies of that log, I was having problems with the upload process.
I have linked this bug to the app Culpa Innata, where I have been experiencing garbled audio and slowness. Interestingly, I have the same exact problem with my app whether I set Winecfg to use OSS or ALSA, it is simply much less severe with OSS.
I am using Ubuntu Intrepid 8.10 x86_64, with the Realtek ALC850 onboard sound card built into my motherboard and PulseAudio 0.9.10 under default configuration.
There is an unfortunate testing gap in my application when I was unavailable, but my last test under Hardy and with Wine 1.1.5 did not have this issue.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #98 from Joni L-H jonilh@gmail.com 2009-02-19 02:27:18 --- This bugg seams to be solved for all games I play from WINE 1.1.14
http://bugs.winehq.org/show_bug.cgi?id=15559
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #99 from Austin English austinenglish@gmail.com 2009-02-19 10:02:41 --- Hasn't been reported broken for a while now...
http://bugs.winehq.org/show_bug.cgi?id=15559
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #100 from Alexandre Julliard julliard@winehq.org 2009-02-27 16:31:14 --- Closing bugs fixed in 1.1.16.
http://bugs.winehq.org/show_bug.cgi?id=15559
Thodoris Greasidis thgreasi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thgreasi@gmail.com
--- Comment #101 from Thodoris Greasidis thgreasi@gmail.com 2009-02-28 02:20:08 --- I do not want to disappoint anyone but my warcraft 3 still sounds like it spits all around. I think scratchiness/stutter should be reopened. I hope this is not just me:)
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #102 from Reece Dunn msclrhd@gmail.com 2009-02-28 06:11:04 --- I have been subscribed to the pulseaudio mailing list since I started investigating this issue in Wine. Of interest is https://tango.0pointer.de/pipermail/pulseaudio-discuss/2009-February/003150.....
Essentially, for the Linux distributions that do not have sound glitches (e.g. Fedora), they have very low scheduling latencies (around 5ms) whereas the ones that have glitches (e.g. Ubuntu) show a latency of around 210ms. It is this high latency that causes the ALSA audio buffer to run out before data is fetched again, and thus cause sound glitches.
This is no longer a Wine issue. It is an issue with pulseaudio and the Linux kernel configuration. If anybody is experiencing any further pulseaudio issues they should file a bug report with their distribution and point them to the link above.
http://bugs.winehq.org/show_bug.cgi?id=15559
--- Comment #103 from Joni L-H jonilh@gmail.com 2009-02-28 14:54:24 --- This can not only be about pulseaduio. Even if the main problem might lie in pulseaudio config of the distro, it can not soley be that as the problem did not exsist untill WINE 1.1.6 and above.
And if it is a matter of distro PA config Ubuntu must have solved it as I use Ubuntu 8.10 and do not have the problem in WINE 1.1.14 and 1.1.15 (not yet tested 1.1.16)