Why didn't the SourceDataLine work when I export my project into JAR file?
I am working on a project to cope with AUDIO-DATA. Receive BYTE Stream in PCM format and transform these binary streams into the sound that can be heard. I use javax.sound.sampled.SourceDataLine
to realize my requirements.
When I'm debugging the program in Eclipse, everthing goes well,but when I package all the codes and libs into a JAR file (Exactly, it's a RUNNABLE one which can run directly when double-clicked). I can not hear the sound. The data streams are received in a right way but the javax.sound.sampled.SourceDataLine
doesn't work.
(My program interface is based on AWT (not swing),but I don't think this has anything to do with my problem)