http://bugs.winehq.org/show_bug.cgi?id=25750
Summary: Baldur's Gate + winealsa + PulseAudio: Beginnings of menu sounds are clipped Product: Wine Version: 1.3.10 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: benshadwick@gmail.com CC: m.b.lankhorst@gmail.com
I've been using Wine 1.2.x and 1.3.x (as recent as 1.3.10) under Ubuntu x64 versions 10.04 and 10.10 on a Dell XPS M1730 with integrated Sigmatel/IDT audio chipset. I'm using the out-of-the-box sound setup, which means PulseAudio is in charge. Sound in Linux apps other than Wine works fine.
When running Baldur's Gate (5-CD version w/TotSC and either 5512 or 5521 patches installed) under Wine using Wine's ALSA driver, all sounds in menus (clicking buttons, moving inventory items around, etc.) have their first half-second or so of sound cut off most of the time. This can be easily reproduced by clicking any of the buttons on the game's main menu, which are often completely inaudible due to this issue.
If I run a WinePulse-patched build of Wine and use its WinePulse driver on the other hand, the sounds come through perfectly fine.
I am submitting this bug report because Maarten Lankhorst specifically asked in bug #10495 that people file bug reports for issues with the winealsa driver that are fixed by using winepulse.
http://bugs.winehq.org/show_bug.cgi?id=25750
Ben Shadwick benshadwick@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://appdb.winehq.org/obj | |ectManager.php?sClass=versi | |on&iId=4530&iTestingId=5948 | |8
http://bugs.winehq.org/show_bug.cgi?id=25750
--- Comment #1 from Maarten Lankhorst m.b.lankhorst@gmail.com 2011-01-10 17:19:39 CST --- Can I have a +winmm,+dsound,+tid log?
http://bugs.winehq.org/show_bug.cgi?id=25750
--- Comment #2 from Ben Shadwick benshadwick@gmail.com 2011-01-11 00:19:09 CST --- Created an attachment (id=32810) --> (http://bugs.winehq.org/attachment.cgi?id=32810) Navigating Baldur's Gate menus in Wine 1.3.11 with winealsa
Launched game, clicked 4 times to skip into movies, loaded a savedgame or two, moved items around in inventory, then quit the game.
http://bugs.winehq.org/show_bug.cgi?id=25750
--- Comment #3 from Ben Shadwick benshadwick@gmail.com 2011-01-11 00:20:53 CST --- Created an attachment (id=32811) --> (http://bugs.winehq.org/attachment.cgi?id=32811) Navigating Baldur's Gate menus in Wine 1.3.10 with winepulse
Same as attachment 32810, except using a build of Wine 1.3.10 with the winepulse patch, with the winepulse driver selected.
http://bugs.winehq.org/show_bug.cgi?id=25750
--- Comment #4 from Ben Shadwick benshadwick@gmail.com 2011-01-11 00:27:12 CST --- (In reply to comment #1)
Can I have a +winmm,+dsound,+tid log?
Logs attached for both stock Wine 1.3.11 with winealsa, and Wine 1.3.10+winepulse.
Running with winealsa results in menu sounds not being clipped, but starting to play almost a second later than they should. After I load a saved game or two and then try to move a quarterstaff around in my inventory, I notice that the beginnings of menu and inventory sounds are clipped or non-existent (the latter most likely being the case of a sound that is shorter than the clipping time).
Running with winepulse results in no discernible lag and no clipping.
http://bugs.winehq.org/show_bug.cgi?id=25750
Raymond superquad.vortex2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2@gmail.com
--- Comment #5 from Raymond superquad.vortex2@gmail.com 2011-01-12 01:36:51 CST --- Just like PA server
dsoutput.c
snd_pcm_sw_params_set_stop_threshold(pcm, sw_params, boundary);
CheckXRUN won't work any more because state will not be SND_PCM_STATE_XRUN anymore when avail frames > buffer size since boundary >> buffer size
http://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m___s_w___params.h...
PCM is automatically stopped in SND_PCM_STATE_XRUN state when available frames is >= threshold. If the stop threshold is equal to boundary (also software parameter - sw_param) then automatic stop will be disabled (thus device will do the endless loop in the ring buffer)
static void CheckXRUN(IDsDriverBufferImpl* This) { snd_pcm_state_t state = snd_pcm_state(This->pcm); snd_pcm_sframes_t delay; int err;
snd_pcm_hwsync(This->pcm); snd_pcm_delay(This->pcm, &delay); if ( state == SND_PCM_STATE_XRUN ) {
http://bugs.winehq.org/show_bug.cgi?id=25750
--- Comment #6 from Raymond superquad.vortex2@gmail.com 2011-01-12 01:52:21 CST --- (In reply to comment #0)
I am submitting this bug report because Maarten Lankhorst specifically asked in bug #10495 that people file bug reports for issues with the winealsa driver that are fixed by using winepulse.
This is because pulse_prepare() in "pulse" pIugin perform a disconnect from PA server
if any alsa application using "pulse" plugin try to recover from xrun occur by snd_pcm_drop() and snd_pcm_prepare() and it will disconnect from PA server
diable xrun in "pulse" plugin only prevent wine to call snd_pcm_prepare() but it does not help to prevent crappy sound since
http://git.alsa-project.org/?p=alsa-plugins.git;a=commit;h=c20d516e229620129...
http://bugs.winehq.org/show_bug.cgi?id=25750
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winealsa.drv
http://bugs.winehq.org/show_bug.cgi?id=25750
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #7 from Jerome Leclanche adys.wh@gmail.com 2012-01-31 16:37:22 CST --- Please retest in wine-1.4-rc1
https://bugs.winehq.org/show_bug.cgi?id=25750
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #8 from Austin English austinenglish@gmail.com --- No reply in 2 years, marking abandoned.
If this is still an issue in current (1.7.16 or newer) wine and you can provide the needed information, feel free to reopen.
https://bugs.winehq.org/show_bug.cgi?id=25750
austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from austinenglish@gmail.com --- Closing.