There is a problem in the execution chain of Java's 'javaws' command, which will usually cut off sound! So first off, please instead of (what I assume you're doing):
instead dive into your .java hidden folder and locate your CGoban deployment, then execute it locally from the app cache, instead of online webstart version, like this:
Code: Select all
padsp java -jar /home/yourname/.java/deployment/cache/6.0/38/2c4b005d-94c13ee9
Where you replace 'yourname' by your name. The actual folder number (here "38") and CGoban file name (here "2c4...ee9") have to be replaced to meet your installation, they differ on different PCs. To locate your deployment, just look for a file that is about 1.5 MB in size, it's CGoban (in my example it is the "2c4...ee9" named file).
If that still doesn't give you sound, the reason would most likely be that either another application reserved the device (unlikely for any standard Ubuntu 10 app though), or (much more likely) caused pulseaudio problems (VLC and web browsers are notorious for this, especially in combination). In another posting I already mentioned to shut down all apps that use sound, like media players and web browsers, then try again.
Make sure the apps really have terminated, open a terminal and type for example:
assuming you closed a Chromium web browser previously. The command should not return any more running chromium-browser process. In case one of the programs hangs and refuses to terminate, ie still shows up in the 'ps' command, you can force-kill it like this:
where '-9' means 'force-kill'. There is no way an app can resist this, the OS will wipe it out. Usually this is only required for VLC or web browsers, if at all.
Usually, after terminating any app that was responsible for messing up sound, you can restart it right away and it'll peacefully coexist with CGoban (thanks to 'padsp'), until it decides to mess up pulseaudio again, several hours/days later, depending on factors such as system load.
Now, if you tried terminating or restarting apps, then executing the 'padsp java -jar..' line above, and still get no sound, it might be that you missed terminating the right app.
In this case, we can just try a brute-force approach to just test the concept if we can in ANY way just get sound out of CGoban:
This will kill and automatically restart the pulseaudio daemon. Running this command will kill all connections of currently running apps to the pulseaudio server, thereby disabling their sound capabilities (and possibly worse) until they are restarted, so this is an ugly thing to do.
However, after this command you'll be sure to have a "clean" pulseaudio server running, ready to accept your 'padsp java -jar..' call, so give it a try to see if it finally works.