Playing ogg Sound with loop

I have a ogg sound in res/raw folder. I try play this sound with loop (without stop sound or cutting-clicks). I created OGG file and play with winamp or other music player and repeat perfectly. Also, I create metadata ANDROID_LOOP with value true in OGG sound file.

Code is basic:

mp = MediaPlayer.create(this, R.raw.sound);
mp.setVolume(0, 0); // for initial fader, irrelevant

In Android 1.5, 1.6, ...., 2.3.X works fine!

But in my Samsung Galaxy S2, updated to Android ICS (4.0.3), I listen a small stop between loops.

Some idea?


Auto answer: In Android 4.0.4 works fine without changes. I assume that is a problem on Android [3.2, 4.0.3]? Possible bug?

Need Your Help

Why use exception handling in apparently "safe" code?

delphi try-except

Please, may somebody explain me, what can raise an exception in this code?

Sign user in ONLY if email and password are correct?

javascript html meteor account iron-router

I have a form that when you click submit it goes to the path /signin no matter what, even if you don't enter anything into the form. However I want it to check if there is a user with the email ent...