I have a game that shows some animations onscreen and one MediaPlayer 
playing with infinite loop the background music, and i am seeing frame rate 
jumps when the song ends and start a loop.

Why is this happening? MediaPlayer is not efficient in the loop?

Can the frame rate jump be avoided?

Thanks

My mediaplayer:

mPlayer = MediaPlayer.create(GameActivity.this, R.raw.pieceofwood);
mPlayer.setLooping(true);
mPlayer.start();

My animations:

        fall = ObjectAnimator.ofFloat(view, "y",-height, sh);
        fall.setDuration(fallTime);
        fall.setInterpolator(null);
        fall.start();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to