audio - Problems playing sounds with Android MediaPlayer -


I have some strange problems in running sounds with Android Media Player.

In my visual constructor, I am doing this:

  clickSound = MediaPlayer.create (references, R.raw.ggclick); RightSound = MediaPlayer.create (Reference, R.raw.right); BadSound = Media PlayerCarete (reference, R.Are.wong);   

And then when I want to play sound:

  if (prefs.getBoolean ("playClick", is true) click.Sound.start ( );   

Files are very few WAV files, and they are used to work I recently upgraded my phone to 2.2 (FRG 83G), and I think The other two still work that when the click sound stopped working.

I tried to change the sound to click on og, and then all three worked. Just for unity, I owed the other two, and then click the sound stopped working, but the other two successfully played.

Does anybody know what is happening here?

Here's my employer to run sounds from a raw resource:

  Protected Media Player _mediaplayer; Public Zero playflow resource (int-read) {if (_mediaplayer! = Null) {_mediaplayer.reset (); } _mediaplayer = mediaplayer credited (this, riaid); _mediaplayer.start (); }    

Comments