I too have that issue of no sound from Java on every PC I build. The sun java test runs but no sound.
http://java.sun.com/products/java-me...emo/index.html
java -jar JavaSoundDemo.jar
Animated coffee beans, with a soundtrack and per-frame sound effects.
file:///usr/lib/jvm/java-1.5.0-sun-1.5.0.10/demo/applets/Animator/example1.html
/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/demo/applets/Animator
/home/user1/.java/deployment/log/plugin150_10.trace is not showing any errors.
I have installed sun-java 1.5.
Flash plugin (non-free does have sound).
The only web site I can test sound on is Runescape l
1f40
ogon screen.
I wonder what the following means (
http://java.sun.com/j2se/1.5.0/docs/...appendix2.html) ?
To use MyDeviceProvider as the default for SourceDataLine lines, set the following key:
javax.sound.sampled.SourceDataLine=com.xyz.MyDevic eProvider
To specify the default Synthesizer by its name InternalSynth, set the following key:
javax.sound.midi.Synthesizer=#InternalSynth
To specify the default Receiver by provider and name, set the following key:
javax.sound.midi.Receiver=com.sun.media.sound.Midi Provider#SunMIDI1
My file has
#
# Example 1:
# Use MyDeviceProvider as default for SourceDataLines:
# javax.sound.sampled.SourceDataLine=com.xyz.MyDevic eProvider
#
# Example 2:
# Specify the default Synthesizer by its name "InternalSynth".
# javax.sound.midi.Synthesizer=#InternalSynth
#
# Example 3:
# Specify the default Receiver by provider and name:
# javax.sound.midi.Receiver=com.sun.media.sound.Midi Provider#SunMIDI1
#
should these be un-commented ?
This was an interesting site but still did not help me,
http://www.vsj.co.uk/java/display.asp?id=370
I found this comment but what does it mean ?
http://forum.java.sun.com/thread.jsp...tart=0#9450488
JavaSound supports ALSA on Linux since Java 1.5.
You can select the "plughw" devices of ALSA.
http://72.14.253.104/search?q=cache:...=au&lr=lang_en
jre/lib/sound/properties
# Use MyDeviceProvider as default for SourceDataLines:
javax.sound.sampled.SourceDataLine=#AudioPCI [plughw:1,0]
I even tried:
/dev/dsp
chmod 666 /dev/audio /dev/dsp /dev/mixer
Well, after trying the above, still no sound from a java applet.
If anyone out there knows what is stopping so many of us from getting sound out of sun java under linux, please let us know.
Thanks,
George.