Page 2 of 2

Re: KGS Sound Issues in Ubuntu

Posted: Wed Apr 27, 2011 12:43 pm
by pel
I would be interested in peoples results running the Java sound demo[1],
well if you suffer from this problem that is.

In particular the tests on the Juke Box-tab.


1) http://java.sun.com/products/java-media ... SoundDemo/

Re: KGS Sound Issues in Ubuntu

Posted: Sat May 21, 2011 10:43 am
by pel
Ok, I've finally found a solution.

By renaming libjsoundalsa.so

Code: Select all

$ mv /usr/lib/jvm/java-6-sun/jre/lib/amd64/libjsoundalsa.so \
 /usr/lib/jvm/java-6-sun/jre/lib/amd64/libjsoundalsa.so.rename


I finally got the sound working! Would be interesting to know why NOT using alsa would help with this problem though..

Re: KGS Sound Issues in Ubuntu

Posted: Mon May 23, 2011 7:07 am
by C. Blue
One more thing- it seems sometimes just padsp'ing a javaws call doesn't help.
The result will be that you can hear the 'ding' sounds from passing, but no stone clacking.

To fix this, it appears that using a static jar instead of webstart jnlp is the best way:

1) download the static client at
http://files.gokgs.com/javaBin/cgoban.jar
2) create custom application launcher or enter in a terminal:
padsp java -jar "/home/yourname/cgoban.jar"
or whereever you placed that cgoban.jar.

(To test in a 100% clear situation you could first restart your pulseaudio before launching cgoban, via 'pulseaudio -k'. Especially Flash as used in web browsers when you go to youtube or similar is notorious for causing trouble. Note that you'll have to restart all apps that use sound that were already running when you issue this command, though.)

That's it. It seems 'padsp javaws cgoban.jnlp' loses the pulseaudio wrapping in most cases, so try this if you haven't had luck so far ^^.

Re: KGS Sound Issues in Ubuntu

Posted: Mon May 23, 2011 10:56 am
by Redbeard
I had a similar problem running Debian. I posted my workaround here.

I found that Java was playing the MIDI sounds of KGS through OSS emulation/pulseaudio, but sending regular sound files directly to alsa and bypassing pulseaudio. Disabling the alsa library for Java would push all sound through OSS, which appears to be more compatible with PA.

What sound card/kernel module are you using? Do you have two sound cards or just one?

Re: KGS Sound Issues in Ubuntu

Posted: Tue Apr 10, 2012 6:13 am
by hermitek
I don't use pulseaudio at all. Earlier (when I was using 64bit Java 6 from Sun I think) I had issues with KGS locking audio driver for itself, but apart from that, sound was working. Right now I'm using 64bit icedtea 7 and there are no OSS/alsa driver issues… but placing stone sound and byo-yomi beeping doesn't work, everything else does (streaming audio, message announcement, I'm not sure about "pass" sound). But the interesting thing is that I have the same issues in Windows 8 with 64bit Java 7 from Oracle. So we should probably wait until Java 7 becomes official and wms will be hopefully forced to fix this.

Re: KGS Sound Issues in Ubuntu

Posted: Tue Apr 10, 2012 1:17 pm
by judicata
Make sure system sounds aren't muted. It's silly, but muting the system alert sounds in the OS's settings can mute the byo-yomi and stone clicking sounds.

Re: KGS Sound Issues in Ubuntu

Posted: Wed Sep 12, 2012 10:37 am
by beans
Here's my 2 cents: I had success with jre6u31 and the following command in Ubuntu 10.10 and Zorin (based on Ubuntu 11.04)

Code: Select all

padsp /opt/jre1.6.0_31/bin/java -jar cgoban.jar


jre6u35 didn't work at all (sound-wise, that is) and aoss works in place of padsp in the above example.