Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Dec 1997 10:51:50 +0200 (EET)
From:      Hannu Savolainen <hannu@opensound.com>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        Tristan Savatier <tristan@mpegtv.com>, race@exchange.lancs.ac.uk, multimedia@freebsd.org
Subject:   Re: MpegTV Problems
Message-ID:  <Pine.LNX.3.95.971203104830.852C-100000@janus.opensound.com>
In-Reply-To: <199712030740.IAA17761@labinfo.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Best regards,

Hannu
-----
On Wed, 3 Dec 1997, Luigi Rizzo wrote:

> > With the OSS driver, currently the only way to
> > get accurate delay information is to set the fragment size
> > to a relatively small size, and to use GETOSPACE.
> ...
> > I still have to set the fragment size to small, otherwise
> > the information about the data queued would be very inaccurate.
> > My understanding is that the driver is called on interrupt
> > to setup dma for a fragment.  If the fragment is large and
> > there is no way to know the current status of a dma transfer
> > in process, then the accuracy is limited to one fragment,
> 
> right. In my driver, and i guess amancio has done something similar,
> whenever some ioctl() is invoked which needs to know the status of the
> transfer, i read the transfer count from the dma registers, so i have
> a precise information independent of the fragment size. But of course
> to remain OSS compatible you have to set a small fragment size.
> 
> > which may represent more than say 1/30th of a second.  This
> > would not be acceptable for lipsync.
> 
> actually i am not sure on what is really the maximum acceptable delay
> for lipsync (or maybe it is also the jitter which counts). 30ms (which
> is the refresh rate of a tv) correspond to the delay between audio and
> video when you look at someone speaking at a distance of about 10m.
> i guess we are used to such delays...
> 
> 	luigi
> 

Hannu Savolainen (hannu@opensound.com)
http://www.fi.opensound.com/~hannu (personal)
http://www.opensound.com/oss.html (Open Sound System (OSS))
http://www.opensound.com/ossfree (OSS Free/TASD/VoxWare)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.971203104830.852C-100000>