From owner-freebsd-multimedia Mon Jul 31 9: 9:22 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from smtp2.jakinternet.co.uk (proxy.jakinternet.co.uk [212.41.43.4]) by hub.freebsd.org (Postfix) with ESMTP id BA33037B541 for ; Mon, 31 Jul 2000 09:09:18 -0700 (PDT) (envelope-from gandalf@vilnya.demon.co.uk) Received: from smtp.jakinternet.co.uk (smtp.jakinternet.co.uk [212.41.41.61]) by smtp2.jakinternet.co.uk (Postfix) with SMTP id A9F1CA7710 for ; Mon, 31 Jul 2000 17:07:06 +0100 (BST) Received: from vilnya.demon.co.uk ([212.41.32.24]) by smtp.jakinternet.co.uk ; Mon, 31 Jul 2000 17:08:25 -0100 Received: from haveblue (haveblue.rings [10.2.4.5]) by vilnya.demon.co.uk (Postfix) with SMTP id 1FFCAD907; Mon, 31 Jul 2000 17:07:47 +0100 (BST) Message-ID: <003501bffb09$404f4ec0$0504020a@haveblue> From: "Cameron Grant" To: "Luoqi Chen" , , References: <200007311520.e6VFKbV22329@lor.watermarkgroup.com> Subject: Re: State of sound support in 4.1-R ? Date: Mon, 31 Jul 2000 17:06:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > The mmap support is somewhat broken. The way dsp_mmap() tries to figure out > which channel to use is wrong, see the comment in sndmmap(). The format > check in dsp_mmap() prevented me from running quake, quake (or other id games) > does a mmap before setting the format. So it is probably a good idea to > reinitialize the channel to use one of the natural formats instead of returning > a failure. actually, the comment for sndmmap() is wrong. the oss spec defines the mmap protection flags as the method of selecting the read or write buffer so we comply with that, but for a vm issue. mmap prior to setting the format should work, if it doesn't i'd be interested in seeing the code that is trying to do this and failing. -cg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message