Sign up ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm trying to play music in the background for my opening menu, but cant seem to find a tutorial specifically on how to play a music file. Does anyone know how this can be accomplished?

share|improve this question

1 Answer 1

up vote 1 down vote accepted
public void init(GameContainer gc) throws SlickException {
    Music openingMenuMusic = new Music("res/openingMenuMusic.ogg");


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.