Page 6 of 8

Re: stone clicking sound missing - windows 7

Posted: Sat Aug 18, 2012 10:48 pm
by Iwanami
Hi all, Yes this same thing has happened to me since Java 1.7 came out. I cant even install the client now so I have to run the Jar file. No sounds and only a boring java icon. looking forward to the update.

Re: stone clicking sound missing - windows 7

Posted: Sun Aug 19, 2012 4:38 am
by maproom
Many thanks to Nick23 for his fix. By using it I have at last got my stone clicks back.

Nick23 wrote
> ... [safety warning snipped] ... rename the file to .jar and place it under lib/ext
> in your java home directory. For me this was /usr/lib/jvm/jre/lib/ext. For you it
> may be C:\Program Files\Oracle\Java1.7.0\lib\ext.

For me it was C:\Program Files\Java\lib\ext

Re: stone clicking sound missing - windows 7

Posted: Thu Sep 13, 2012 4:15 pm
by richardamullens
I tried the biguglyhack with cgoban-h.

I used the command
sudo cp /home/richard/Downloads/javadummymixer_biguglyhack.jar /usr/lib/jvm/java-6-openjdk/jre/lib/ext/

The sound of the stones returned as did Chid0ri's clock voice, but the the sound was broken up and when I or my opponent went into Byoyomi, the sound seemed to overwhelm my system and the client would crash every 10 moves or so.

I had to remove the hack as it was making me lose games !

Re: stone clicking sound missing - windows 7

Posted: Fri Sep 14, 2012 4:16 am
by whitehorse
This solution solved my sound problem on Windows 7. An observation, I installed cgoban automatically and it appears that the system uses jawa.exe from \Program Files\System\ instead of \Program Files\Java\.

Thank you.

UnclMartin wrote:Here is a solution that comes to us via email that should work for the Java Web Start client (but not the applet):

Edit the shortcut or command that starts CGoban and add
-J-Dsun.sound.useNewAudioEngine="false"
after javaws.

For example, if your command was javaws cgoban.jnlp change it to javaws -J-Dsun.sound.useNewAudioEngine="false" cgoban.jnlp


Some of you please try this, and post the results here.

For those of you who use the "java" command instead of the "javaws", remove the "-J" For example,
java -Dsun.sound.useNewAudioEngine="false" -jar cgoban.jar

Thank you, person that sent the email.
(I guess he wishes to remain anonymous, since he did not post that here himself.)

Re: stone clicking sound missing - windows 7

Posted: Fri Sep 14, 2012 8:39 pm
by Phelan
whitehorse wrote:jawa.exe
C:\>jawa.exe
Utinni!

Re: stone clicking sound missing - windows 7

Posted: Wed Sep 26, 2012 12:26 am
by Codexus
After not playing on KGS for a while I had the bad surprise to encounter this issue when coming back (on win 7 x64)

I solved it by installing Java 6u31 (apparently the latest that still works) without uninstalling Java 7. Then I just dowloaded the CGoban jar file and made a batch file to start it with version 6u31.

Code: Select all

"C:\Program Files\Java\jre6\bin\javaw" -jar cgoban.jar


That way I can keep an unmodified latest version of Java 7 for everything else and have CGoban working without having to pull off my own hair in frustration trying some of the clever hacks proposed here ;)

Re: stone clicking sound missing - windows 7

Posted: Wed Sep 26, 2012 5:58 am
by Mef
Codexus wrote:After not playing on KGS for a while I had the bad surprise to encounter this issue when coming back (on win 7 x64)

I solved it by installing Java 6u31 (apparently the latest that still works) without uninstalling Java 7. Then I just dowloaded the CGoban jar file and made a batch file to start it with version 6u31.

Code: Select all

"C:\Program Files\Java\jre6\bin\javaw" -jar cgoban.jar


That way I can keep an unmodified latest version of Java 7 for everything else and have CGoban working without having to pull off my own hair in frustration trying some of the clever hacks proposed here ;)


I believe you could also download the JNLP ( http://files.gokgs.com/javaBin/cgoban.jnlp )and use:

Code: Select all

"C:\Program Files\Java\jre6\bin\javaws" cgoban.jnlp


And you would retain the automatic updating features of java webstart.

Re: stone clicking sound missing - windows 7

Posted: Wed Sep 26, 2012 10:14 am
by Codexus
Mef wrote:

Code: Select all

"C:\Program Files\Java\jre6\bin\javaws" cgoban.jnlp


And you would retain the automatic updating features of java webstart.


I just tried your suggestion but it doesn't work for me. The Java 6 logo is displayed but CGoban itself is still started with Java 7. As I understand it, java webstart is supposed to choose the correct version of Java to run based on the content of jnlp file and defaults to the latest. There might be a way to modify the jnlp for that but then there are code signing problems if I do that.

But thanks for the idea anyway :)

Re: stone clicking sound missing - windows 7

Posted: Thu Sep 27, 2012 1:32 pm
by Hicham
Wms, any idea when you would have time to fix this? As a non-it guy I feel a bit out of my league messing around with java hacks.

Re: stone clicking sound missing - windows 7

Posted: Sun Sep 30, 2012 5:10 pm
by davesf
I was able to fix my missing stone-click sounds with the java-extension-mixer-hack.. Thanks for that.

What's really weird, is that the KGS "error" sound (if I try to click before the mis-click timer) still soudns find, just the stone click sounds are missing.

Testaudio produced no sound for me.. here is the output.

C:\kgs>java -jar testaudio.zip
Played audio file at volume 0.85125035

C:\kgs>java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)

Re: stone clicking sound missing - windows 7

Posted: Sun Sep 30, 2012 11:28 pm
by Codexus
davesf wrote:What's really weird, is that the KGS "error" sound (if I try to click before the mis-click timer) still soudns find, just the stone click sounds are missing.


yes, wms said he used different ways to play a sound in Java as they were coded at different times and some functions were not available in earlier versions.

Now I haven't seen the code but it would seem to me that for a quick fix, just a ugly copy/paste of the code for a sound that works to replace one that doesn't should solve this problem in no time... Better code can be written later if needed.

Re: stone clicking sound missing - windows 7

Posted: Mon Oct 01, 2012 2:22 pm
by dfunkt
I give up. I'll fix the *!@*$!@#*$ stone sounds.


If this server is such a nuisance, why not just shut it down? Or hand control in all respects (including programming) to someone who cares.

But I'm going on vacation on Friday (to Congress then to a family event); I don't want to fix before then, because if there is a problem with my fix I won't be able to change anything until I return. So I'll try to get a fix in sometime after August 20...it's a long way off, but that's when I'll be back around.


It's well past August 20th now and stone sounds are still broken. No updates have been offered and the only solutions seem to be made for people with programming savvy.

Re: stone clicking sound missing - windows 7

Posted: Tue Oct 02, 2012 10:01 am
by Codexus
I'm sure wms will fix it as soon as he can.

dfunkt wrote:If this server is such a nuisance, why not just shut it down? Or hand control in all respects (including programming) to someone who cares.


I have been in this exact situation. My free applet had problems after a Java upgrade and it's really annoying to have to go back and fix something that broke itself for no good reason when you have other priorities at the moment. And that kind of angry comment demanding an immediate fix did not help me get in the mood to work on something I give away for free again.

We just have to be patient.

Re: stone clicking sound missing - windows 7

Posted: Tue Oct 02, 2012 10:30 am
by ProtoJazz
I started making my own stone sounds as I play. I expect the neighbors think Im atleast 3 stones

Re: stone clicking sound missing - windows 7

Posted: Thu Oct 25, 2012 10:43 am
by UnclMartin
The admins have been told that the switch to use the old audio engine is only for Java 1.6.0_30 to 1.6.0_37. It is not available in Java 1.7, and Java older than 1.6.0_30.