android - MediaPlayer vs SoundPool for only 1 simultaneous stream -


I am working on a game in which the phone is shaken every time. Does it make sense to use soundtrack and load sounds on the on-craye of my activity, or it is OK to make an intermediary every time, as shown below:

  Woe on private zeros () {MediaPlayer Mp = MediaPlayer.create (this, cheerful [present-day] [force]); Mp.start (); }   

I guess SoundPool is better because the sound only loads once I am right?

Thanks

Julian

As expected, SoundPool is very fast ...

Comments