Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2006 12:57:56 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-multimedia@freebsd.org
Cc:        Simon Barner <barner@freebsd.org>, Ariff Abdullah <ariff@freebsd.org>
Subject:   Re: Testing request: GIANT Free snd_solo(4)
Message-ID:  <200601051258.00351.hselasky@c2i.net>
In-Reply-To: <20060105123544.73fb400a.ariff@FreeBSD.org>
References:  <20060104224705.3bb21deb.ariff@FreeBSD.org> <20060105032333.GA2865@zi025.glh.mhn.de> <20060105123544.73fb400a.ariff@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 05 January 2006 05:35, Ariff Abdullah wrote:
> [CC: freebsd-multimedia@]
>
> On Thu, 5 Jan 2006 04:23:34 +0100
>

> >
> > Results: When I set hw.snd.pcm0.buffersize to 4096, the sound chokes
> > (without any additional load). I took 8192 instead.
>

The sound system should be a little more intelligent, and scale the buffer 
size according to the sample rate used, instead of using a fixed buffer size. 

8000 bytes of buffer at  8kHz gives 1 second of delay.
8000 bytes of buffer at 96kHz gives 83ms of delay.

I would recommend 2*50ms or 2*25ms of buffer.

> I'm assuming the default buffersize (16k) is fair enough.
>

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601051258.00351.hselasky>