Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 1997 09:25:58 -0400
From:      Brian Campbell <brianc@milkyway.com>
To:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: dma handling in the sound driver
Message-ID:  <19970724092558.31924@milkyway.com>
In-Reply-To: <19970724064335.01827@ct.picker.com>; from Randall Hopper on Thu, Jul 24, 1997 at 06:43:35AM -0400
References:  <19970723232432.47587@ct.picker.com> <199707240508.HAA25745@labinfo.iet.unipi.it> <19970724064335.01827@ct.picker.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 24, 1997 at 06:43:35AM -0400, Randall Hopper wrote:
> Luigi Rizzo:
>  |Randall Hopper:
>  |> Ok.  Well, the only commercial app I have this info for is the MpegTV's
>  |> Linux mtv, since I buzzed it out when debugging the no-audio problem
>  |> (before dumping it for the FreeBSD version).  Here's the /dev/dsp ioctls it
>  |> uses:
>  |
>  |Thanks for the detailed list.
>  |
>  |I am looking at the DSP_SETFRAGMENT thing, and while I have no problem
>  |to implement it with the required features, it sounds quite odd that
>  |the application requires many small buffers. If they are small it means
>  |the app wants low latency, so why ask for many ?
> 
> Small buffers gets it low latency on write()s.  Many buffers minimizes the
> chance that the driver will have played everything by the time that it gets
> around to feeding it again.

In addition, many small buffers allow applications do occasional large
write()s and not have to worry about waiting for several buffers to
empty before the write() can return.



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