Is there an easy way to put music in a java applet? Preferably streaming so that it doesn't need to be preloaded.
2 Answers
You might try something like this, though as the author said he didn't stream so it stuttered. You'd want to preload a certain amount of the sound before feeding it to the Line.
-
\$\begingroup\$ Yes, it's not exactly what I'm looking for, but I guess there is no other easy way to do this. Thanks for the answer. \$\endgroup\$– DanikAug 28, 2010 at 14:05
This site may help you, it contains a lot of examples of how to use the Java sound API (loading, playing, streaming, recording...).