KGS Sound Issues in Ubuntu

Comments, questions, rants, etc, that are specifically about KGS go here.
pel
Dies in gote
Posts: 20
Joined: Sun Apr 25, 2010 2:52 pm
Rank: 3k
GD Posts: 0
Has thanked: 5 times
Been thanked: 1 time

Re: KGS Sound Issues in Ubuntu

Post 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/
pel
Dies in gote
Posts: 20
Joined: Sun Apr 25, 2010 2:52 pm
Rank: 3k
GD Posts: 0
Has thanked: 5 times
Been thanked: 1 time

Re: KGS Sound Issues in Ubuntu

Post 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..
C. Blue
Dies in gote
Posts: 69
Joined: Thu Oct 07, 2010 4:45 am
Rank: EGF 1d
GD Posts: 0
KGS: CBlue
Has thanked: 29 times
Been thanked: 29 times

Re: KGS Sound Issues in Ubuntu

Post 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 ^^.
User avatar
Redbeard
Lives with ko
Posts: 269
Joined: Fri Apr 23, 2010 10:56 am
Rank: AGA 12k
GD Posts: 292
KGS: RedBeard
DGS: Akahige
Location: Seattle
Has thanked: 127 times
Been thanked: 123 times
Contact:

Re: KGS Sound Issues in Ubuntu

Post 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?
hermitek
Dies in gote
Posts: 27
Joined: Tue Jan 25, 2011 3:25 am
Rank: KGS 5k
GD Posts: 0
Has thanked: 14 times
Been thanked: 3 times

Re: KGS Sound Issues in Ubuntu

Post 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.
User avatar
judicata
Lives in sente
Posts: 932
Joined: Wed Apr 21, 2010 12:55 pm
Rank: KGS 1k
GD Posts: 0
Universal go server handle: judicata
Location: New York, NY
Has thanked: 146 times
Been thanked: 150 times

Re: KGS Sound Issues in Ubuntu

Post 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.
beans
Beginner
Posts: 15
Joined: Sun Jun 13, 2010 6:38 pm
Rank: KGS 5k
GD Posts: 0
KGS: beans
Has thanked: 5 times
Been thanked: 2 times

Re: KGS Sound Issues in Ubuntu

Post 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.
A journey of a thousand miles starts with a single search for cheap flights.
Post Reply