Sign in to follow this  
TVsFrank

[java] J2ME & Music

Recommended Posts

TVsFrank    122
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
Momoko_Fan    100
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this