Sunday, November 05, 2006

How to fix BZFlag sound in Debian Etch

The standard Alsa drivers for my sound hardware (Intel 845 motherboard) are very poor.
I did finally manage to get sound working properly by building bzflag without SDL:

(get a recent bzflag cvs)
./configure --without-SDL
make
sudo make install

You must remove the config.cfg file before the new non-sdl bzflag will work properly.
Confirm your version like so:

/usr/games$ ./bzflag -v
BZFlag client 2.0.8.20061016-MAINT-linux-gnu-SDL (protocol 0026) http://BZFlag.org/

This is the -SDL build.
Note that the installer does not put bzflag in this location. the /usr/games location is specific to Debian. Just copy your new build to this location and check again:

/usr/games$ bzflag -v
BZFlag client 2.0.8.20061105-MAINT-linux-gnu (protocol 0026) http://BZFlag.org/

The normal option tells bzflag to send sound request to SDL - which chooses the best option from available drivers. The --without-SDL avoids this ALSA issue and sound works properly.

3 comments:

Anonymous said...

hi, thanks for the post. i had the same sound problems. after running 'make install', the terminal returned [bash: bzflag: command not found]

any help?

Anonymous said...

to clarify - i ran 'sudo make install,' and it looked okay. then i tried 'bzflag,' and it returned 'command not found.' thanks.

KyleH said...

Sounds like bzflag is not in your path. The installer probably put it in /usr/local/bin/bzflag
Try this:
$cd /usr/local/bin/
$./bzflag
Does that work for you?