Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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 stackoverflow.com. –  Ricket Aug 27 '10 at 14:56

2 Answers 2

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

 
discard

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.