ALSA and java games sound problems

Couple weeks ago I upgraded my mothers computer from Microsoft XP to Linux Debian Lenny (testing). Everything is working except sound with java games. After couple weeks searching for a fix and reading ALSA documention and tinkering around.

the problematic soundcard is

$ lspci
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 70)

This is what I ended up with to get the sound to work with the java games. First I created the ~/.asoundrc file, and this what I added to the ~/.asoundrc file.

!defaults.pcm.card 0
defaults.ctl.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.device defaults.pcm.device

After saving the file we have to restart ALSA

# /etc/init.d/alsa-utils restart
Shutting down ALSA…done.
Setting up ALSA…done.

Note: this fix may not work for everyone.

2 thoughts on “ALSA and java games sound problems”

  1. Quail,

    Thanks heaps for shedding some light on this topic. It was driving me nuts.

    The main thing I took from this was to stop blaming java/flash and to look elsewhere for the fault because I think all I was accomplishing was screwing up the java installation.

    I’m quickly running out of reasons I can’t try and get the wife to join the dark side.


Leave a Reply