HI, I'm working with java sound. i get the audio datas from a TargetDataLine and then write it in a outputStream which i get from a socket. when another user get the datas ,he write it in a SourceDataLine. But the sound is discontinuous. Is there any ideas? Thanks!
What do you mean by discontinuous? Is the sound broken? Say if you have transmitted A, B and C. you receive A and C only? Or is it that the data is echoed? I worked on Java sound previously. I didnt face the discontinuity problem, however the voice was echoing. Send me details of what is happenning.
I thought that JMF was indicated when transmiting live audio. TCP is not suitable for realtime audio transmission. Worse than that, buffering the stream will likely cause the discontinous effect you mentioned.
SCJP2. Please Indent your code using UBB Code
Not looking good. I think this might be the end. Wait! Is that a tiny ad?