Alex Villacís Lasso : winealsa: Reduce writeahead to next multiple of psize greater than 512.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 26 07:11:50 CDT 2007
Module: wine
Branch: master
Commit: 647ad64faa5887c7b94d89496827e98ecb3bbdbd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=647ad64faa5887c7b94d89496827e98ecb3bbdbd
Author: Alex Villacís Lasso <a_villacis at palosanto.com>
Date: Mon Jun 25 12:49:28 2007 -0500
winealsa: Reduce writeahead to next multiple of psize greater than 512.
---
dlls/winealsa.drv/dsoutput.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/winealsa.drv/dsoutput.c b/dlls/winealsa.drv/dsoutput.c
index 9fc5020..e4c7d3f 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)
{
More information about the wine-cvs
mailing list