Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Damaso Lopez

Greenhorn
+ Follow
since Jun 21, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Damaso Lopez

Willie McGee wrote:what is the actual error you get?



I've same problem,my case it send a buffer 1024 bytes in Java for UDP and received I've supposed 1024 in C but this application "C" says "Error UDP frame too smaill: 1024" I don't know that to do bad. My code is:


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

Greg Charles wrote:You catch an exception from sendStream()? What exception? I assume it's happening at line 44: ms.send(dp), but I don't see that you've told us what ms is, so that's going to be hard for us to diagnose.



Sorry, I could solve, I did not realize I was doing wrong
9 years ago
Hi all,

I've got another problem with reader on microphone and send UDP multicasting . Then I would listen to it ,ie I want to hear what comes from the udp.

The code is:



The methods stopPlay() , playStream() and stopSender() is correct but the method sendStream, I don't know why catch this exception. Can you help me, please??
9 years ago
Hi all,

I've got this code:



throws the exception:

javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream

I've the jl.jar, mp3spi.jar and tritonus_share.jar in my project but still it throws the exception, I prove the next line:

and I can listen to the music, the variable 'line' is type SourceDataLine, Can you help me,please?


Hi all everybody, today it's doing solve:

I did made it evil, it was poorly implemented, thanks, the solve code is:
9 years ago

olze oli wrote:What do you mean with "says the message"? The same message as mine in the first post? I noticed that some mp3 files are not recognized. First check on a "regular" mp3 file if its working.
You can use the mp3spi player (on the same site, javalayer) to test if it *should* work. If it does in that player, you can be sure that the problem exists in your application.
Make sure your classpath contains that classes. If so, it should play that file/stream.



Yeah your message "couldn't get audio input stream from input stream" Ok! I prove it, the problem is I do not have any mp3 file, it all comes from UDP. Do you change anything next posts? because after then receive(datagrampacket);
I put this line:

line.write(datagrampacket.getData(),0,datagrampacket.getLenght()); I can listen to the music
9 years ago

olze oli wrote:
just copied jl.jar mp3spi.jar and tritonus_share.jar to my classpath and its just working



I download these files and copy en my project, but don't run because always says the message. Are there others things that those?? Can you help me, please???

I've this code:



9 years ago