Ashamed to say, in the end it seems that they did not do something.
Because of the need for work, it is necessary to seamlessly loop multiple Ogg audio simultaneously.
I tried to decode the Ogg file in Java at the Java layer, the efficiency is not to say, want to crash to use it: D
Later tried with native code, but I finally only implemented single-threaded decoding and playback, based on the Ogg decoding library and OpenAL playback, and is decoded after playback.
In fact, the idea is very simple, while decoding the decoded data into the player cache playback just. But because of the time relationship is not done.
Finally found the bass library by accident.
BASS library:http://www.un4seen.com/
I have to say that the library is strong enough.
The try is really seamless, and the bass library itself has other great features to explore.
In addition, the author also said in the forum, the seamless loop is only decoded when decoded to the end of the file to re-decode it from the beginning.
So in the end I chose to have a simple encapsulation of it, a little reference to the MediaPlayer method.
You can see here: Https://github.com/ViTess/Android-OMEPlayer
The plug-in and some sound functions will continue to be packaged later, so you don't have to look at that somewhat confusing document.
Android enables the seamless loop playback of Ogg audio