[Bug 14812] dsound bug causes games to crash
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Aug 10 00:28:57 CDT 2008
http://bugs.winehq.org/show_bug.cgi?id=14812
Maarten Lankhorst <m.b.lankhorst at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |m.b.lankhorst at gmail.com
--- Comment #2 from Maarten Lankhorst <m.b.lankhorst at gmail.com> 2008-08-10 00:28:57 ---
I don't know whether this is a directsound error or not, but I doubt it is.
Sound underflow/overflows usually don't cause crashes, and I don't see anything
here that indicates it's a sound problem.
If you still think it's a problem, edit dlls/winealsa.drv/dsoutput.c
Change
snd_pcm_uframes_t used = This->mmap_buflen_frames -
snd_pcm_avail_update(This->pcm);
To
snd_pcm_sframes_t used = This->mmap_buflen_frames -
snd_pcm_avail_update(This->pcm);
if (used < 0)
{
snd_pcm_forward(This->pcm, -used);
used = 0;
}
I've sent this patch to wine-patches, but AJ is on vacation. If there really is
an underrun this will at least recover from it.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list