Sign in to follow this  
LAURENT*

Sound effects won't overlap.

Recommended Posts

Hello,

 

I'm having a serious problem with audio in my game. My sound effects won't overlap. My game uses bullets that fire at a somewhat frequent state and I need to play the sounds repeatedly. I tried to use a class call media player but I don't think this will be helpful and to top it off the Music continued to play even after I exited to my phone's home screen.

Could someone recommend me a better method for handling sound for my game? I'm so close to done with the programming part then I'll finally be able to start making levels. Please help me.  

Share this post


Link to post
Share on other sites

I tried to use a class call media player but I don't think this will be helpful and to top it off the Music continued to play even after I exited to my phone's home screen.

Have you looked at the SoundPool class for that? 

I've read that multiple simultaneous MediaPlayer objects don't always work well together, so that may be the source of the issue. I've never tried that route, so I'm not sure if that's the situation.

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