[PATCH] winealsa.drv: Check for errors on snd_pcm_mmap_commit

Luis Javier Merino ninjalj at gmail.com
Mon Mar 17 21:41:22 CDT 2008

snd_pcm_mmap_commit can return -EPIPE, using this as a value ended up
triggering an assert
at dlls/dsound/mixer.c:DSOUND_BufPtrDiff (ptr1 < buflen) while playing Tzar
Anthology. With this patch, sound stutters but wine doesn't exit with an

As for the last hunk in the patch, can someone confirm if this is the right
thing to do in IDsDriverBufferImpl_Stop?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20080318/e381519f/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsapatch
Type: application/octet-stream
Size: 4459 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080318/e381519f/attachment-0001.obj 

More information about the wine-patches mailing list