From owner-freebsd-multimedia Wed Dec 3 01:38:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA24159 for multimedia-outgoing; Wed, 3 Dec 1997 01:38:59 -0800 (PST) (envelope-from owner-freebsd-multimedia) Received: from smtp.creative.net (cybere.creative.net [207.137.200.15]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA24154 for ; Wed, 3 Dec 1997 01:38:57 -0800 (PST) (envelope-from tristan@mpegtv.com) Received: from tristan (port2.creative.net [207.137.201.2]) by smtp.creative.net (8.8.7/8.8.7) with SMTP id BAA10041; Wed, 3 Dec 1997 01:35:40 -0800 (PST) Message-ID: <3485275C.162985BB@mpegtv.com> Date: Wed, 03 Dec 1997 01:33:16 -0800 From: Tristan Savatier Organization: MpegTV, http://www.mpegtv.com X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.27 i586) MIME-Version: 1.0 To: Hannu Savolainen CC: Luigi Rizzo , race@exchange.lancs.ac.uk, multimedia@freebsd.org Subject: Re: MpegTV Problems References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hannu Savolainen wrote: > > Hi, > > The info.ptr value returned by OSS is computed from the DMA residue count. > However the old VoxWare driver for FreeBSD doesn't work in this way. > Instead it works just on the fragment boundaries. Do you mean info.ptr == number of bytes currently in the driver's fifo ? I thought that was info.bytes ? In any case, I have had bad experiences with GETOPTR too. There are many versions of the OSS driver, and it is extremely hard to know what IOCTL works in what version. It seems that neither GETOSPACE nor GETOPTR worked in old versions, as you know. In the next version, there will be a environment variable to choose between the GETOSPACE method and the GETOPTR method. The problem is that it is hard for me to decide automatically which method will work better (if any), and whether it is necessary to set a small fragsize or not (since in theory, if GETOPTR works as advertised, I should not have to set a small fragsize if using the GETOPTR method. -t