Some games, and other proprietary software (To my knowledge, the ones that use OSS) have it hard-coded in them that the default soundcard, mixer and audio devices are located in the following locations:
Code:
/dev/audio
/dev/dsp
/dev/mixer
Although, for a minor few, this isn't the case of their setup.
If, your like me, and you use an external USB Soundcard, and your onboard soundcard is turned off in BIOS. Then your default soundcards may be pointing to these locations instead:
Code:
/dev/audio1
/dev/dsp1
/dev/mixer1
To which brings up warning messages in the terminal before the game starts, and ultimately results in no sound ingame.
FIX:
Open up the udev rules for alsa. If you are running Jaunty, you'll need to copy the file over:
Code:
sudo cp /lib/udev/rules.d/85-alsa-utils.rules /etc/udev/rules.d/85-alsa.rules
Code:
gksudo gedit /etc/udev/rules.d/85-alsa.rules
and add the following at the bottom:
Code:
KERNEL=="controlC[0-9]*", ACTION=="add", \
RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/alsa/bogus --startas /etc/init.d/alsa-utils -- start %n"
KERNEL=="dsp1", SYMLINK+="dsp"
KERNEL=="mixer1", SYMLINK+="mixer"
KERNEL=="audio1", SYMLINK+="audio"
Save, quit, and reboot your system.
Now when you open up the terminal and type in ls /dev you'll now see the symlinks audio, dsp and mixer.
And you'll finally get sound from that game you got too...
Regards
Iain
Bookmarks