From 647ad64faa5887c7b94d89496827e98ecb3bbdbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Mon, 25 Jun 2007 12:49:28 -0500 Subject: [PATCH] winealsa: Reduce writeahead to next multiple of psize greater than 512. --- dlls/winealsa.drv/dsoutput.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/winealsa.drv/dsoutput.c b/dlls/winealsa.drv/dsoutput.c index 9fc5020328e..e4c7d3fd1e6 100644 --- a/dlls/winealsa.drv/dsoutput.c +++ b/dlls/winealsa.drv/dsoutput.c @@ -381,7 +381,11 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx, BOOL fo FIXME("Your alsa dmix period size is excessively high, unfortunately this is alsa default, try decreasing it to 512 or 256 (but double the amount of periods) if possible\n"); This->mmap_writeahead = 3 * psize; } - else This->mmap_writeahead = 3 * 512; + else + { + This->mmap_writeahead = 3 * psize; + while (This->mmap_writeahead <= 512) This->mmap_writeahead += psize; + } if (This->pcm) { -- 2.11.4.GIT