Commit 647ad64f authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

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

parent 0b9cab02
...@@ -381,7 +381,11 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx, BOOL fo ...@@ -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"); 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; 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) if (This->pcm)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment