Date: Fri, 22 Jun 2001 12:01:46 +0100 From: Jonathan Irwin <jmi25@cam.ac.uk> To: Amir Shalem <amir@boom.org.il> Cc: freebsd-stable@freebsd.org Subject: Re: Quake2 on FreeBSD Message-ID: <20010622120146.B562@cam.ac.uk> In-Reply-To: <Pine.BSF.4.33_heb2.09.0106212325070.3566-100000@active.ath.cx>; from amir@boom.org.il on Thu, Jun 21, 2001 at 11:34:49PM %2B0300 References: <Pine.BSF.4.33_heb2.09.0106212325070.3566-100000@active.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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. The relevant lines from my dmesg (4.3-RELEASE system): sbc0: <SoundBlaster 16> at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0 pcm0: <SB16 DSP 4.05> on sbc0 Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010622120146.B562>