KGS sound on Linux - current status

Comments, questions, rants, etc, that are specifically about KGS go here.
Post Reply
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

KGS sound on Linux - current status

Post by C. Blue »

KGS sound partially works for me on OpenJDK 7 (and Pulseaudio), without the need for any wrapper or proxy hacks:
Pass sound and chat notification sound work.
Stone clacking and voice transmission does not work.

Maybe at least stone clacking could be changed to use the same means for sound generation as chat/pass do?

It should be noted that Oracle (formerly Sun) Java has been removed from some distributions due to the way Oracle decided to handle Java after it took over, so it becomes that more important to support OpenJDK now.
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 on Linux - current status

Post by judicata »

All true. I'd rather use openjdk, but I always end up installing the Sun/Oracle version.
User avatar
flOvermind
Lives with ko
Posts: 295
Joined: Wed Apr 21, 2010 3:19 am
Rank: EGF 4 kyu
GD Posts: 627
Location: Linz, Austria
Has thanked: 21 times
Been thanked: 43 times

Re: KGS sound on Linux - current status

Post by flOvermind »

Actually, starting with version 7, the official Oracle JDK and the OpenJDK are nearly identical, and the differences are expected to disappear soon...

(See for example http://blogs.oracle.com/henrik/entry/moving_to_openjdk_as_the.)

I would be very surprised if you still found something that works with the latest Oracle JDK 7 and not with the latest OpenJDK 7 (version 6 is a different story :P).
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 on Linux - current status

Post by Redbeard »

I'm not sure it's an OpenJDK issue. I have the same problem with Debian 6.03 using the sun-java6-jdk package, however the issue is intermittent. Pre-pending "padsp" to the "javaws" command seems to help. Sometimes I have to bring up KGS with "padsp javaws cgoban.jnlp", kill pulseaudio, and restart it before the sound plays correctly.

I haven't had much time to thoroughly test the issue, but I believe it has more to do with pulseaudio than Java. You can duplicate the issue using the Java Sound Demo app.
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 on Linux - current status

Post by pel »

I had a similar issue but with the sun jdk (solution here).
It turned out, weirdly, that the issue was with the alsa driver. Renaming that driver so that it isn't loaded helped and everything has since worked like a charm with padsp infront of the java command.
Post Reply