#5429 Sounds have stopped working

open
nobody
Client (146)
5
2012-02-21
2012-02-21
No

Stendhal used to run fine for me, including sounds (background music/ambient sounds in some places, animal roars and fighting noises etc.). Now, sounds have stopped working on the two computers where it was installed (let's call them T and Q) - the game is just mute. Sounds output by other applications are audible, so there is no global sounds off-setting in place. Stendhal's not muted specifically by Windows mixer, either. Also, sounds are not muted according to the in-game settings panel on the Sound tab (which I've opened for the first time ever now that sounds had already disappeared).

I cannot pinpoint exactly when this problem started (didn't realize sounds were gone at first), but as far as I can tell, it happened after one of the two following changes to my two systems:
* I've updated the installed JRE to 1.7.0_03 (build 1.7.0_03-b05) (T) and 1.7.0_02 (build 1.7.0_02-b13) (Q), respectively.
* Stendhal updated itself to 0.99.

Some system info:
* T runs on Windows Vista 32 Bit.
* Q runs on Windows 7 64 Bit.

I've noticed that log output has changed during the change of JRE versions:

A typical log output on T up until the moment of JRE update:

2012-02-12 20:27:09 INFO [main] stendhal.java ( 157) - Setting base at :\stendhal\ 2012-02-12 20:27:10 INFO [main] stendhal.java ( 158) - Stendhal 0.99
2012-02-12 20:27:10 INFO [main] stendhal.java ( 159) -
2012-02-12 20:27:10 INFO [main] stendhal.java ( 160) - Logging to directory: C:\Users\Florian Haag\stendhal\log/
2012-02-12 20:27:10 INFO [main] stendhal.java ( 167) - OS: Windows Vista Service Pack 2 6.0 x86
2012-02-12 20:27:10 INFO [main] stendhal.java ( 170) - Java-Runtime: Java(TM) SE Runtime Environment 1.6.0_26-b03 from C:\Program Files\Java\jre6
2012-02-12 20:27:10 INFO [main] stendhal.java ( 173) - Java-VM: Sun Microsystems Inc. Java HotSpot(TM) Client VM 20.1-b02
2012-02-12 20:27:32 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 195) - initializing sound system
2012-02-12 20:27:32 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Primärer Soundtreiber - Direct Audio Device: DirectSound Playback (0)
2012-02-12 20:27:32 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Lautsprecher (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
2012-02-12 20:27:32 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: SPDIF-Schnittstelle (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
2012-02-12 20:27:32 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Java Sound Audio Engine - Software mixer and synthesizer (-1)
2012-02-12 20:27:32 INFO [AWT-EventQueue-0] SoundSystemNG.java ( 555) - opening sound system with line "com.sun.media.sound.DirectAudioDevice$DirectSDL@43da1b" and audio format "PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian"
2012-02-12 20:54:32 INFO [Game loop] j2DClient.java ( 615) - Request logout
2012-02-12 20:54:33 INFO [Game loop] SoundSystemNG.java ( 377) - stopping sound system after 0.0ms

A typical log output on T as of the time when the JRE was updated:

2012-02-21 19:00:09 INFO [main] stendhal.java ( 157) - Setting base at :\stendhal\ 2012-02-21 19:00:09 INFO [main] stendhal.java ( 158) - Stendhal 0.99
2012-02-21 19:00:09 INFO [main] stendhal.java ( 159) -
2012-02-21 19:00:09 INFO [main] stendhal.java ( 160) - Logging to directory: C:\Users\Florian Haag\stendhal\log/
2012-02-21 19:00:09 INFO [main] stendhal.java ( 167) - OS: Windows Vista Service Pack 2 6.0 x86
2012-02-21 19:00:09 INFO [main] stendhal.java ( 170) - Java-Runtime: Java(TM) SE Runtime Environment 1.7.0_03-b05 from C:\Program Files\Java\jre7
2012-02-21 19:00:09 INFO [main] stendhal.java ( 173) - Java-VM: Oracle Corporation Java HotSpot(TM) Client VM 22.1-b02
2012-02-21 19:00:19 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 195) - initializing sound system
2012-02-21 19:00:19 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: SPDIF-Schnittstelle (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
2012-02-21 19:00:19 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Lautsprecher (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
2012-02-21 19:00:19 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Primärer Soundtreiber - Direct Audio Device: DirectSound Playback (0)
2012-02-21 19:00:19 INFO [AWT-EventQueue-0] SoundSystemNG.java ( 555) - opening sound system with line "com.sun.media.sound.DirectAudioDevice$DirectSDL@38d900" and audio format "PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian"
2012-02-21 19:01:05 WARN [Game loop] Logger.java ( 208) - Missing base object for modified added RPObject with id RPObject.ID [id=3061 zoneid=0_ados_mountain_n2_w2]
2012-02-21 19:05:17 INFO [Game loop] j2DClient.java ( 615) - Request logout
2012-02-21 19:05:17 INFO [Game loop] SoundSystemNG.java ( 377) - stopping sound system after 0.0ms

Note how the "Java Sound Audio Engine - Software mixer and synthesizer" is gone and the others are in reverse order in the latter. This can be observed on Q just as well (which used to list 5 devices, now 4).

Discussion

  • oslsachem

    oslsachem - 2012-02-21

    Sound works for me.

    Before java 1.7:

    2012-02-21 20:06:43 INFO [main] stendhal.java ( 157) - Setting base at :\stendhal\ 2012-02-21 20:06:43 INFO [main] stendhal.java ( 158) - Stendhal 0.99
    2012-02-21 20:06:43 INFO [main] stendhal.java ( 159) -
    2012-02-21 20:06:43 INFO [main] stendhal.java ( 160) - Logging to directory: C:\Documents and Settings\Usuario\stendhal\log/
    2012-02-21 20:06:43 INFO [main] stendhal.java ( 167) - OS: Windows XP Service Pack 3 5.1 x86
    2012-02-21 20:06:43 INFO [main] stendhal.java ( 170) - Java-Runtime: Java(TM) SE Runtime Environment 1.6.0_31-b05 from C:\Archivos de programa\Java\jre6
    2012-02-21 20:06:43 INFO [main] stendhal.java ( 173) - Java-VM: Sun Microsystems Inc. Java HotSpot(TM) Client VM 20.6-b01
    2012-02-21 20:07:15 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 195) - initializing sound system
    2012-02-21 20:07:15 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Controlador primario de sonido - Direct Audio Device: DirectSound Playback (0)
    2012-02-21 20:07:15 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Realtek AC97 Audio - Direct Audio Device: DirectSound Playback (0)
    2012-02-21 20:07:15 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Java Sound Audio Engine - Software mixer and synthesizer (-1)
    2012-02-21 20:07:15 INFO [AWT-EventQueue-0] SoundSystemNG.java ( 555) - opening sound system with line "com.sun.media.sound.DirectAudioDevice$DirectSDL@913dc1" and audio format "PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian"
    2012-02-21 20:12:35 INFO [Game loop] j2DClient.java ( 615) - Request logout
    2012-02-21 20:12:36 INFO [Game loop] SoundSystemNG.java ( 377) - stopping sound system after 0.0ms

    After java 1.7:

    2012-02-21 20:50:46 INFO [main] stendhal.java ( 157) - Setting base at :\stendhal\ 2012-02-21 20:50:46 INFO [main] stendhal.java ( 158) - Stendhal 0.99
    2012-02-21 20:50:46 INFO [main] stendhal.java ( 159) -
    2012-02-21 20:50:46 INFO [main] stendhal.java ( 160) - Logging to directory: C:\Documents and Settings\Usuario\stendhal\log/
    2012-02-21 20:50:46 INFO [main] stendhal.java ( 167) - OS: Windows XP Service Pack 3 5.1 x86
    2012-02-21 20:50:46 INFO [main] stendhal.java ( 170) - Java-Runtime: Java(TM) SE Runtime Environment 1.7.0_03-b05 from C:\Archivos de programa\Java\jre7
    2012-02-21 20:50:46 INFO [main] stendhal.java ( 173) - Java-VM: Oracle Corporation Java HotSpot(TM) Client VM 22.1-b02
    2012-02-21 20:51:06 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 195) - initializing sound system
    2012-02-21 20:51:06 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Realtek AC97 Audio - Direct Audio Device: DirectSound Playback (0)
    2012-02-21 20:51:06 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Controlador primario de sonido - Direct Audio Device: DirectSound Playback (0)
    2012-02-21 20:51:06 INFO [AWT-EventQueue-0] SoundSystemNG.java ( 555) - opening sound system with line "com.sun.media.sound.DirectAudioDevice$DirectSDL@399fdc" and audio format "PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian"
    2012-02-21 20:51:24 INFO [Game loop] j2DClient.java ( 615) - Request logout
    2012-02-21 20:51:24 INFO [Game loop] SoundSystemNG.java ( 377) - stopping sound system after 0.0ms

    The changes you mention also appear in my logs.

    However, what is this about:

    2012-02-21 19:01:05 WARN [Game loop] Logger.java ( 208) - Missing base object for modified added RPObject with id RPObject.ID [id=3061 zoneid=0_ados_mountain_n2_w2]

    greetings,
    Osl

     
  • Florian Haag

    Florian Haag - 2012-02-21

    However, what is this about:

    2012-02-21 19:01:05 WARN [Game loop] Logger.java ( 208) - Missing base
    object for modified added RPObject with id RPObject.ID [id=3061
    zoneid=0_ados_mountain_n2_w2]

    Whoops ... looks like I accidentally picked a *less typical* run for a typical example :-) The others JRE 1.7 runs don't have that one, their log consists entirely of INFO messages.

    So it does work for you on Win XP ... would be interesting to see whether the problem occurs on Win Vista/Win 7 for others, or whether it is not related to Java 6 <-> Java 7 after all.

     
  • oslsachem

    oslsachem - 2012-02-22

    You can check if it is a problem related to java 7 on Windows Vista by using another java application that outputs sound (e.g. http://sourceforge.net/projects/xtrememp/ ) and checking if sound works.

    You can also uninstall java 7 and reinstall java 6 and check if the updated stendhal client outputs sound.

    Greetings,
    Osl

     
  • Florian Haag

    Florian Haag - 2012-02-22

    I've tried this now (on T) - uninstalled the Java 7 RE, installed Java 6 update 31. Sounds in Stendhal were clearly audible as they used to be, starting with the "welcome" sound right after selecting the character to play.

    I then uninstalled that JRE 6, and installed Java 7 update 3. Sounds in Stendhal were gone again.

    I've also tried the application you pointed me to, and it does play back wave files for me in both configurations, i.e. also when Java 7 is installed.

     
  • Florian Haag

    Florian Haag - 2012-02-22

    Another log copy from stendhal.txt, two game runs on the same machine (T), the only change between the two runs was uninstalling Java 6 and installing Java 7. Sounds were audible during the first run, the game was mute during the second run.

    2012-02-22 21:12:58 INFO [main] stendhal.java ( 157) - Setting base at :\stendhal\ 2012-02-22 21:12:58 INFO [main] stendhal.java ( 158) - Stendhal 0.99
    2012-02-22 21:12:58 INFO [main] stendhal.java ( 159) -
    2012-02-22 21:12:58 INFO [main] stendhal.java ( 160) - Logging to directory: C:\Users\Florian Haag\stendhal\log/
    2012-02-22 21:12:58 INFO [main] stendhal.java ( 167) - OS: Windows Vista Service Pack 2 6.0 x86
    2012-02-22 21:12:58 INFO [main] stendhal.java ( 170) - Java-Runtime: Java(TM) SE Runtime Environment 1.6.0_31-b05 from C:\Program Files\Java\jre6
    2012-02-22 21:12:58 INFO [main] stendhal.java ( 173) - Java-VM: Sun Microsystems Inc. Java HotSpot(TM) Client VM 20.6-b01
    2012-02-22 21:13:05 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 195) - initializing sound system
    2012-02-22 21:13:05 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Primärer Soundtreiber - Direct Audio Device: DirectSound Playback (0)
    2012-02-22 21:13:05 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Lautsprecher (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
    2012-02-22 21:13:05 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: SPDIF-Schnittstelle (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
    2012-02-22 21:13:05 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Java Sound Audio Engine - Software mixer and synthesizer (-1)
    2012-02-22 21:13:05 INFO [AWT-EventQueue-0] SoundSystemNG.java ( 555) - opening sound system with line "com.sun.media.sound.DirectAudioDevice$DirectSDL@18eb7b8" and audio format "PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian"
    2012-02-22 21:14:33 INFO [Game loop] j2DClient.java ( 615) - Request logout
    2012-02-22 21:14:33 INFO [Game loop] SoundSystemNG.java ( 377) - stopping sound system after 0.0ms
    2012-02-22 21:22:32 INFO [main] stendhal.java ( 157) - Setting base at :\stendhal\ 2012-02-22 21:22:32 INFO [main] stendhal.java ( 158) - Stendhal 0.99
    2012-02-22 21:22:32 INFO [main] stendhal.java ( 159) -
    2012-02-22 21:22:32 INFO [main] stendhal.java ( 160) - Logging to directory: C:\Users\Florian Haag\stendhal\log/
    2012-02-22 21:22:32 INFO [main] stendhal.java ( 167) - OS: Windows Vista Service Pack 2 6.0 x86
    2012-02-22 21:22:32 INFO [main] stendhal.java ( 170) - Java-Runtime: Java(TM) SE Runtime Environment 1.7.0_03-b05 from C:\Program Files\Java\jre7
    2012-02-22 21:22:32 INFO [main] stendhal.java ( 173) - Java-VM: Oracle Corporation Java HotSpot(TM) Client VM 22.1-b02
    2012-02-22 21:22:39 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 195) - initializing sound system
    2012-02-22 21:22:39 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: SPDIF-Schnittstelle (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
    2012-02-22 21:22:39 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Lautsprecher (Conexant 20561 SmartAudio HD) - Direct Audio Device: DirectSound Playback (0)
    2012-02-22 21:22:39 INFO [AWT-EventQueue-0] SoundManagerNG.java ( 200) - available device: Primärer Soundtreiber - Direct Audio Device: DirectSound Playback (0)
    2012-02-22 21:22:39 INFO [AWT-EventQueue-0] SoundSystemNG.java ( 555) - opening sound system with line "com.sun.media.sound.DirectAudioDevice$DirectSDL@b9e305" and audio format "PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian"
    2012-02-22 21:23:48 INFO [Game loop] j2DClient.java ( 615) - Request logout
    2012-02-22 21:23:48 INFO [Game loop] SoundSystemNG.java ( 377) - stopping sound system after 0.0ms

     
  • oslsachem

    oslsachem - 2012-02-22

    >> I've also tried the application you pointed me to, and it does play back
    wave files for me in both configurations, i.e. also when Java 7 is
    installed.

    Could you try playing the ogg files in http://arianne.cvs.sourceforge.net/viewvc/arianne/stendhal/data/sounds/ ? Perhaps java 7 in Windows Vista is having problems with this particular audio format.

     
  • Florian Haag

    Florian Haag - 2012-02-22

    Xtreme Media Player plays back harp--1.ogg, bear-1.ogg, bear-2.ogg and bear-3.ogg without any problems also using Java 7.

     
  • oslsachem

    oslsachem - 2012-02-24

    Well, it seems to be a problem related to Java 7 and not Stendhal because:

    - Sound works for you in Java 6 in windows Vista
    - Sound works for me in Java 7 in windows XP
    - There are no errors in the logs
    - Java 7 is relatively new

    So, the thing left to do would be submitting a bug report to Oracle's java developers:

    http://bugreport.sun.com/bugreport/

    But first you can try the newest developer preview release (one never knows if it will work this time):

    http://jdk7.java.net/download.html

    Then, before reporting the bug it would be interesting to try to isolate a minimal test case (so that java developers don't have to search through the whole of Stendhal's source code). Perhaps a Stendhal developer who knows about sound can be reached for this.

    Greetings,
    Osl

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks