WINEALSA: completely fill mmap buffer

Alex Villaci­s Lasso a_villacis at palosanto.com
Thu Apr 21 14:27:02 CDT 2005


Alex Villaci­s Lasso wrote:

> In my configuration (Fedora Core 2, alsa-lib 1.0.3a-2), the available 
> frames for filling do not always become an exact multiple of the 
> period size. This leaves a section of the mmap buffer unfilled, and 
> causes a *very* annoying buzzing when an application requests 
> DirectSound with winealsa (except in emulation mode). This patch fixes 
> it by checking whether a section of the buffer still remains unfilled, 
> and fills it without rounding to a multiple of the period size.
>
> Changelog:
> * Completely fill mmap buffer
>
In 20050419, winealsa has been changed, but the problem in my 
configuration still remains. This patch forces the procedure to do one 
more commit if some frames remain to be transferred.

Changelog:
* Perform one more commit in ALSA non-emulation if there are still 
frames to be transmitted.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-winmm-winealsa-full-mmap_resend.patch
Type: text/x-patch
Size: 973 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050421/f70bd5ff/wine-winmm-winealsa-full-mmap_resend.bin


More information about the wine-patches mailing list