winealsa: Reduce writeahead to next multiple of psize greater than 512.

This commit is contained in:
Alex Villacís Lasso 2007-06-25 12:49:28 -05:00 committed by Alexandre Julliard
parent 0b9cab02c4
commit 647ad64faa
1 changed files with 5 additions and 1 deletions

View File

@ -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)
{