From owner-freebsd-stable Fri Jun 22 4: 4:33 2001 Delivered-To: freebsd-stable@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id 5F1A037B401 for ; Fri, 22 Jun 2001 04:04:26 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.11.3/8.11.3) with ESMTP id f5MB49X07346; Fri, 22 Jun 2001 18:04:09 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Date: Fri, 22 Jun 2001 18:04:09 +0700 (NSS) From: Max Khon To: Jonathan Irwin Cc: Amir Shalem , freebsd-stable@FreeBSD.ORG Subject: Re: Quake2 on FreeBSD In-Reply-To: <20010622120146.B562@cam.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi, there! On Fri, 22 Jun 2001, Jonathan Irwin wrote: > Amir Shalem wrote: > > > I have tried lately to run quake2 on freebsd 4.3. > > I managed to get it running, but I had some problems with the sound: > > ------- sound initialization ------- > > /dev/dsp: Invalid argument > > Could not set /dev/dsp to stereo=2 > > > > I have tried looking for FAQs about installing quake on freebsd, > > I have found http://www.dons.net.au/~darius/quake/ page, it said > > quake2/quake needs sound driver capable of supporting mmap()able DMA > > buffers, is that the problem ? > > The newpcm driver does support mmap()able DMA buffers, so this isn't > the cause. > > It has something to do with the order in which the Quake sound code > makes it's ioctl() calls to set up the sound card. I spent many hours > fiddling with this in Quake I a few weeks ago, and I gave up before I > got it working (unfortunately). My solution was to write a new > snd_bsd.c, which used conventional write() calls instead, and seems > to work fine (I also sorted out the includes to make it portable to > Net/OpenBSD [untested]). Ask if you want a copy. there were no problems with sound in Quake II on 4.2-RELEASE however /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message