S
Scott
I'm trying to play a simple .wav file using code copied from:
http://www.developer.com/java/other/article.php/2173111
I'm running the latest Java 1.6 on windows 98 SE. However I get:
PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 22050.
0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.
at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at AudioPlayer02$PlayThread.run(AudioPlayer02.java:146)
This happens whenever I try to open the line. I get the same problem when I run
jsinfo.jar (from http://www.jsresources.org/apps/jsinfo.html) - everything is
fine until I try to open a line.
WinAmp plays the .wav file without any problems.
I can even play it using the DirectSound code in:
http://msdn.microsoft.com/archive/en-us/dnarsound/html/msdn_streams3.asp?frame=true
Is this just a problem with windows 98 or is there something I'm over looking?
http://www.developer.com/java/other/article.php/2173111
I'm running the latest Java 1.6 on windows 98 SE. However I get:
PCM_SIGNED 22050.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 22050.
0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.
at com.sun.media.sound.DirectAudioDevice$DirectDL.implOpen(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at com.sun.media.sound.AbstractDataLine.open(Unknown Source)
at AudioPlayer02$PlayThread.run(AudioPlayer02.java:146)
This happens whenever I try to open the line. I get the same problem when I run
jsinfo.jar (from http://www.jsresources.org/apps/jsinfo.html) - everything is
fine until I try to open a line.
WinAmp plays the .wav file without any problems.
I can even play it using the DirectSound code in:
http://msdn.microsoft.com/archive/en-us/dnarsound/html/msdn_streams3.asp?frame=true
Is this just a problem with windows 98 or is there something I'm over looking?