It is currently Sat May 17, 2025 1:24 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2
Author Message
Offline
 Post subject: Re: KGS Sound Issues in Ubuntu
Post #21 Posted: Wed Apr 27, 2011 12:43 pm 
Dies in gote

Posts: 20
Liked others: 5
Was liked: 1
Rank: 3k
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/

Top
 Profile  
 
Offline
 Post subject: Re: KGS Sound Issues in Ubuntu
Post #22 Posted: Sat May 21, 2011 10:43 am 
Dies in gote

Posts: 20
Liked others: 5
Was liked: 1
Rank: 3k
Ok, I've finally found a solution.

By renaming libjsoundalsa.so
Code:
$ 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..


This post by pel was liked by: pasky
Top
 Profile  
 
Offline
 Post subject: Re: KGS Sound Issues in Ubuntu
Post #23 Posted: Mon May 23, 2011 7:07 am 
Dies in gote

Posts: 69
Liked others: 29
Was liked: 29
Rank: EGF 1d
KGS: CBlue
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 ^^.

Top
 Profile  
 
Offline
 Post subject: Re: KGS Sound Issues in Ubuntu
Post #24 Posted: Mon May 23, 2011 10:56 am 
Lives with ko
User avatar

Posts: 269
Location: Seattle
Liked others: 127
Was liked: 123
Rank: AGA 12k
GD Posts: 292
KGS: RedBeard
DGS: Akahige
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?

Top
 Profile  
 
Offline
 Post subject: Re: KGS Sound Issues in Ubuntu
Post #25 Posted: Tue Apr 10, 2012 6:13 am 
Dies in gote

Posts: 27
Liked others: 14
Was liked: 3
Rank: KGS 5k
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.

Top
 Profile  
 
Offline
 Post subject: Re: KGS Sound Issues in Ubuntu
Post #26 Posted: Tue Apr 10, 2012 1:17 pm 
Lives in sente
User avatar

Posts: 932
Location: New York, NY
Liked others: 146
Was liked: 150
Rank: KGS 1k
Universal go server handle: 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.

Top
 Profile  
 
Offline
 Post subject: Re: KGS Sound Issues in Ubuntu
Post #27 Posted: Wed Sep 12, 2012 10:37 am 
Beginner

Posts: 15
Liked others: 5
Was liked: 2
Rank: KGS 5k
KGS: 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:
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.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group