Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there an easy way to put music in a java applet? Preferably streaming so that it doesn't need to be preloaded.

share|improve this question
As this isn't game development specific, you might get a better response at – Ricket Aug 27 '10 at 14:56
up vote 1 down vote accepted

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.

share|improve this answer
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. – Danik Aug 28 '10 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...).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.