Friday, December 5, 2008

Tip: Enable sound on Enemy Territory under FreeBSD

Enemy Territory is available in FreeBSD's ports system under /usr/ports/games/linux-enemyterritory. The port's Makefile makes no mention that if you install the game and run it you'll be playing without sound.
Here's a quick tip on how to enable sound on Enemy Territory under FreeBSD 7.0:
  1. % su
  2. # sysctl hw.snd.compat_linux_mmap=1
  3. # echo "hw.snd.compat_linux_mmap=1" >> /etc/sysctl.conf
  4. # exit
Step 2 enables sound immediately and with step 3 sound will be enabled at boot time.
And that's it. Now hurry and go play the world great first-person shoot ever.
d^.^b

No comments: