====== Sound problems with games using OSS ====== Some Linux games (in fact, most) are still using <color purple>OSS</color>, namely Enemy Territory or Quake III Arena for example. Even if your sound subsystem is well configured (either with real <color purple>OSS</color> or with <color purple>ALSA</color>'s <color purple>OSS</color> emulation), you may encounter a "no sound" problem under these games. Sometimes there's an error message associated: <code console> /dev/dsp: Input/output error Could not mmap /dev/dsp </code> Here's how to fix this: First, get the name of the executable of the program you're trying to launch. For quake3 it's <color red>quake3.x86</color> or <color red>quake3-smp.x86</color> if you have multiple CPU cores. Then, as root: <code console> # echo "quake3.x86 0 0 direct" > /proc/asound/card0/pcm0p/oss </code> This should do it. Of course, replace <color red>quake3.x86</color> by the actual name of your game's executable file. You may try to replace direct by disable if the first doesn't work. Side note 1: "card0" is right if you have only one sound card. If you have several cards, try also card1, card2, etc. Side note 2: the sudo fanatics (like me) will notice that: <code console> $ sudo echo "whatever" > /somewhere/where/only/root/has/access </code> Doesn't work. This is because the redirection ">" is made by the currently running shell (under your user account). Only the command echo is done with root access, which is useless. You may use this instead: <code console> $ echo "whatever" | sudo tee /somewhere/where/only/root/has/access </code> Side note 3: For Quake III Arena, you may want to try the open-source version of the engine. It works way better (for me, at least) than the ID version. They use <color purple>SDL</color> for the sound instead of <color purple>OSS</color>, and it's really nicer. Google for ioquake3 if you're interested. It's packaged at freshrpms too. ~~META:date created = 2006-11-01 15:11:00~~

 
blog/sound_problems_with_games_using_oss.txt · Last modified: 08/03/2010 13:25 (external edit) · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki