stone clicking sound missing - windows 7

Comments, questions, rants, etc, that are specifically about KGS go here.
Iwanami
Beginner
Posts: 1
Joined: Sat Aug 18, 2012 10:45 pm
GD Posts: 0
Universal go server handle: Iwanami

Re: stone clicking sound missing - windows 7

Post 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.
maproom
Beginner
Posts: 19
Joined: Wed Apr 21, 2010 1:42 pm
Rank: European 3 kyu
GD Posts: 0
KGS: maproom
Location: Oxford, England
Has thanked: 60 times
Been thanked: 4 times
Contact:

Re: stone clicking sound missing - windows 7

Post 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
richardamullens
Dies with sente
Posts: 93
Joined: Fri Apr 23, 2010 7:07 am
Rank: kgs 5 kyu
GD Posts: 0
KGS: cockroach, hobosaurus
Location: Europe
Has thanked: 87 times
Been thanked: 20 times
Contact:

Re: stone clicking sound missing - windows 7

Post 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 !
whitehorse
Beginner
Posts: 1
Joined: Fri Sep 14, 2012 4:11 am
Rank: KGS 1 dan
GD Posts: 0
KGS: whitehorse

Re: stone clicking sound missing - windows 7

Post 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.)
User avatar
Phelan
Gosei
Posts: 1449
Joined: Tue Apr 20, 2010 3:15 pm
Rank: KGS 6k
GD Posts: 892
Has thanked: 1550 times
Been thanked: 140 times

Re: stone clicking sound missing - windows 7

Post by Phelan »

whitehorse wrote:jawa.exe
C:\>jawa.exe
Utinni!
a1h1 [1d]: You just need to curse the gods and defend.
Good Go = Shape.
Associação Portuguesa de Go
User avatar
Codexus
Dies with sente
Posts: 101
Joined: Tue Sep 14, 2010 4:24 am
Rank: DGS 6k
GD Posts: 0
KGS: Codexus
DGS: Codexus
Location: Geneva, Switzerland
Has thanked: 66 times
Been thanked: 57 times

Re: stone clicking sound missing - windows 7

Post 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 ;)
Mef
Lives in sente
Posts: 852
Joined: Fri Apr 23, 2010 8:34 am
Rank: KGS [-]
GD Posts: 428
Location: Central Coast
Has thanked: 201 times
Been thanked: 333 times

Re: stone clicking sound missing - windows 7

Post 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.
User avatar
Codexus
Dies with sente
Posts: 101
Joined: Tue Sep 14, 2010 4:24 am
Rank: DGS 6k
GD Posts: 0
KGS: Codexus
DGS: Codexus
Location: Geneva, Switzerland
Has thanked: 66 times
Been thanked: 57 times

Re: stone clicking sound missing - windows 7

Post 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 :)
Hicham
Beginner
Posts: 8
Joined: Tue Apr 27, 2010 6:39 am
Rank: KGS 1D EGF 2kyu
GD Posts: 871
Location: Brussels, Belgium
Has thanked: 16 times
Been thanked: 1 time

Re: stone clicking sound missing - windows 7

Post 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.
davesf
Beginner
Posts: 1
Joined: Sun Sep 30, 2012 5:09 pm
Rank: KGS 6 kyu
GD Posts: 0
KGS: jeske

Re: stone clicking sound missing - windows 7

Post 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)
User avatar
Codexus
Dies with sente
Posts: 101
Joined: Tue Sep 14, 2010 4:24 am
Rank: DGS 6k
GD Posts: 0
KGS: Codexus
DGS: Codexus
Location: Geneva, Switzerland
Has thanked: 66 times
Been thanked: 57 times

Re: stone clicking sound missing - windows 7

Post 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.
dfunkt
Dies with sente
Posts: 78
Joined: Sun Jan 01, 2012 1:17 pm
Rank: 9k
GD Posts: 0
Universal go server handle: dfunkt
Has thanked: 10 times
Been thanked: 33 times

Re: stone clicking sound missing - windows 7

Post 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.
User avatar
Codexus
Dies with sente
Posts: 101
Joined: Tue Sep 14, 2010 4:24 am
Rank: DGS 6k
GD Posts: 0
KGS: Codexus
DGS: Codexus
Location: Geneva, Switzerland
Has thanked: 66 times
Been thanked: 57 times

Re: stone clicking sound missing - windows 7

Post 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.
ProtoJazz
Dies in gote
Posts: 52
Joined: Mon Jun 25, 2012 11:19 pm
Rank: KGS 13k
GD Posts: 0
Universal go server handle: ProtoJazz
Been thanked: 19 times

Re: stone clicking sound missing - windows 7

Post by ProtoJazz »

I started making my own stone sounds as I play. I expect the neighbors think Im atleast 3 stones
User avatar
UnclMartin
Dies in gote
Posts: 55
Joined: Sat Oct 29, 2011 1:44 pm
GD Posts: 0
KGS: UnclMartin
Has thanked: 6 times
Been thanked: 12 times

Re: stone clicking sound missing - windows 7

Post 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.
Post Reply