From owner-freebsd-multimedia Sat Jan 2 05:05:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA16620 for freebsd-multimedia-outgoing; Sat, 2 Jan 1999 05:05:15 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA16612 for ; Sat, 2 Jan 1999 05:05:12 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id LAA24450; Sat, 2 Jan 1999 11:56:09 +0100 From: Luigi Rizzo Message-Id: <199901021056.LAA24450@labinfo.iet.unipi.it> Subject: Re: No sound with quake 2 on FreeBSD-2.2.8 To: cracauer@cons.org (Martin Cracauer) Date: Sat, 2 Jan 1999 11:56:09 +0100 (MET) Cc: shocking@prth.pgs.com, freebsd-multimedia@FreeBSD.ORG In-Reply-To: <19990102131759.A14728@cons.org> from "Martin Cracauer" at Jan 2, 99 01:17:40 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > available, so there is really nothing stopping people from implementing > > it -- not even time, since they want this primitive to play games. > > This is an early candidate for the quote of the year :-) maybe. > I think the main point about the mmap interface is that you don't need > a seperate thread or process to feed the card. Portably, that is, > without surprises which write(2) blocks when on which driver/os. This is totally false. Mmapping the buffer will not save you from underruns. The only thing it gives you is the ability to replace samples already written to the driver (but not consumed by it) with new ones. Of course you have no (portable) way to control/enforce how much buffering occurs within the driver so in the end i wonder how much you gain in terms of portability. The mmap interface (someone please correct me if i am wrong) is only there because Windows uses it in some incarnation. cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO . EMAIL: luigi@iet.unipi.it . Dip. di Ing. dell'Informazione HTTP://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message