[java] music in java

Started by
2 comments, last by tjbrosna 23 years, 5 months ago
Is is possible to stream in music(mp3) in java for an applet game, if so how, and do I need to use some sort of player such as real audio?? Thanks for your help, T.J
Advertisement
Yes, it is. I''ve seen a java appllet which streams play a mp3 sound file and does a lot of cool stuff.....

Ciao,
shake66@net-con.net
Any kind of music in java applets is based on com.sun.audio (.au and .wav files ) or JMF ( java2 and plug-in ). Streaming .mp3 would be very costly in terms of processing, and read audio would be out of the question ( there are no codec''s for it ). You could imbed the sound into the web page where the applet lives and alter it''s state with java-script calls ( http://www.javaonthebrain.com for example ).

I will be working on a generic audio library for java games soon. I''ve just been busy profiling video routines.

Good luck.
I found an article on Java World that shows you how to play MP3 files in Java.

JP.

==============================================
I feel like a kid in some kind of store...
==============================================
www.thejpsystem.com
==============================================I feel like a kid in some kind of store... ============================================== www.thejpsystem.com

This topic is closed to new replies.

Advertisement