• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.sound ?

 
mira yang
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Murad Iqbal
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
mira yang
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes,yes
i mean that sometime the sound is echoing. what's the reasion?i write the code like this:
please hope me!
[ April 16, 2004: Message edited by: mira yang ]
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!