Jump to content
  • Advertisement
Sign in to follow this  
LAURENT*

Sound effects won't overlap.

This topic is 468 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

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
Advertisement

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

Thanks a lot.

At first using the sound pool class lagged my game hard, but then I got the idea to only use it for small sound effects instead. Thanks

Edited by LAURENT*

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!