From 6f04c38fdaf6593591de3821ae63d2c780b01ec5 Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 20 Feb 2012 18:30:26 +0100 Subject: [PATCH] Use larger fragsize for OSS. --- audio/oss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/oss.c b/audio/oss.c index 4d01778a12..b90cc36e41 100644 --- a/audio/oss.c +++ b/audio/oss.c @@ -58,8 +58,8 @@ static void *oss_init(const char *device, unsigned rate, unsigned latency) return NULL; } - int frags = (latency * rate * 4)/(1000 * (1 << 9)); - int frag = (frags << 16) | 9; + int frags = (latency * rate * 4)/(1000 * (1 << 10)); + int frag = (frags << 16) | 10; if (ioctl(*fd, SNDCTL_DSP_SETFRAGMENT, &frag) < 0) {