Radek Bartoň
unread,Jan 4, 2013, 6:31:10 AM1/4/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pl...@googlegroups.com
Great idea but unfortunatelly length of the sound does not solve anything. I tried to play the sound natively on Android using
SoundPool pool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);
pool.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {
@Override
public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
soundPool.play(sampleId, 1.0f, 1.0f, 1, -1, 1.0f);
}
});
pool.load(this, R.raw.test, 1);
and the gap was threre too when format was MP3, playing WAV version of the sound is almost gapless.
The problem is that playing WAV or OGG from PlayN does not work at all :-(.