Im trying to send audio data of targetdataline to outputstream.Im using the following code:
AudioSystem.wri te(new AudioInputStrea m(targetDataLin e),AudioFileFor mat.Type.WAVE,O utput);
which shows I/O exception:
java.io.IOExcep tion: stream length not specified
at com.sun.media.s ound.WaveFileWr iter.write(Wave FileWriter.java :114)
please someone give me a solution...than ks...
AudioSystem.wri te(new AudioInputStrea m(targetDataLin e),AudioFileFor mat.Type.WAVE,O utput);
which shows I/O exception:
java.io.IOExcep tion: stream length not specified
at com.sun.media.s ound.WaveFileWr iter.write(Wave FileWriter.java :114)
please someone give me a solution...than ks...