problem in audio input stream

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alok049
    New Member
    • Feb 2008
    • 2

    #1

    problem in audio input stream

    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...
Working...