Jump to content
  • Advertisement
Sign in to follow this  
TVsFrank

[java] J2ME & Music

This topic is 3552 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm developing a game using J2ME (and it's game API) and I'm playing some music, a midi, using the MediaPlayer however the sound is coming out extremely choppy. If I comment out the rendering code it plays normal however. I've tried creating / starting the player in a new thread with the same result. There must be some trick here as all I have to do is flip the buffers every frame for the sound to break up.

Share this post


Link to post
Share on other sites
Advertisement
Did you try limiting framerate? Like fliiping the buffers once every 1/30'th of a second? It's possible it takes all CPU time which doesn't allow the midi to be processed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!