From owner-freebsd-multimedia Sat Aug 9 06:53:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA24459 for multimedia-outgoing; Sat, 9 Aug 1997 06:53:06 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id GAA24452 for ; Sat, 9 Aug 1997 06:53:00 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id OAA01550; Sat, 9 Aug 1997 14:42:29 +0200 From: Luigi Rizzo Message-Id: <199708091242.OAA01550@labinfo.iet.unipi.it> Subject: Re: [nas] anyone using nas ? To: chuckr@glue.umd.edu (Chuck Robey) Date: Sat, 9 Aug 1997 14:42:28 +0200 (MET DST) Cc: multimedia@FreeBSD.ORG In-Reply-To: from "Chuck Robey" at Aug 9, 97 02:38:46 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > On Sat, 9 Aug 1997, Luigi Rizzo wrote: > > > I am trying to use nas with my new sound driver, but I am running into > > some problems. First of all the original voxware module for vat seems > > to me a little bit broken in that it does not check the amount of data > > read/written to the device, and assumes the operation has successfully > > completed. Second problem, after fixing that, is that the audio (when > > doing aurecord followed by auplay) seems to have very frequent hiccups, ... i did a bit more testing. nas calls setitimer to wakeup periodically and do the necessary processing (why it does this ? of course because select() is broken in most drivers...) It has a bug in the code since it computes the interval in milliseconds, but then fills up the tv_usec field with a _millisecond_ value, resulting in a 64us timeout! Luckily intervals are rounded to the next 1/hz boundary... -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________