wood burning stoves*
The moose likes Sockets and Internet Protocols and the fly likes SourceDataLine + DataGramPacket (UDP) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "SourceDataLine + DataGramPacket (UDP)" Watch "SourceDataLine + DataGramPacket (UDP)" New topic
Author

SourceDataLine + DataGramPacket (UDP)

Damaso Lopez
Greenhorn

Joined: Jun 21, 2012
Posts: 8
Hi all,

I've a problem when received audio from multisocket, I can listen to audio from speakers but the channel left add noise I don't know where is the problem in my code:



The previous code running, but I listen to noise or "brr" and audio and the right channel not to listen noise. The format is :

sample rate=8000
sample size in bits=16
channels=2
signed=true
bigendian=false
Damaso Lopez
Greenhorn

Joined: Jun 21, 2012
Posts: 8
Damaso Lopez wrote:Hi all,

I've a problem when received audio from multisocket, I can listen to audio from speakers but the channel left add noise I don't know where is the problem in my code:



The previous code running, but I listen to noise or "brr" and audio and the right channel not to listen noise. The format is :

sample rate=8000
sample size in bits=16
channels=2
signed=true
bigendian=false



Well after investigating almost a week I was able to remove some noise but still I don't know the reason, how to resolve it in quotes

I found an example in
http://www.jsresources.org/examples/SingleChannelStereoConverter.html

To resolved it a little
 
Don't get me started about those stupid light bulbs.
 
subject: SourceDataLine + DataGramPacket (UDP)