Use larger fragsize for OSS.

This commit is contained in:
Themaister 2012-02-20 18:30:26 +01:00
parent b8382416ee
commit 6f04c38fda

View File

@ -58,8 +58,8 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency)
return NULL; return NULL;
} }
int frags = (latency * rate * 4)/(1000 * (1 << 9)); int frags = (latency * rate * 4)/(1000 * (1 << 10));
int frag = (frags << 16) | 9; int frag = (frags << 16) | 10;
if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0) if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0)
{ {