P
P
paleniy2016-09-20 23:25:17
Android
paleniy, 2016-09-20 23:25:17

Loop not working in soundpool in android 4.2, how to fix?

made playing background music with a loop (tried to specify -1 and a specific number of loops) through the soundpool, works in android 5, but does not work in 4.2 (the file is played only once)
I tried to do it through mediaplayer, but there is a large delay between playing the file (about a few seconds )
The bug seems to be known https://code.google.com/p/android/issues/detail?id... but I did not find a suitable solution.
Can I somehow get around the bug so that it works through the soundpool? or some other way so that there is no delay between playbacks of the file? (the application will have background music + 2-3 more sounds on the event)
PS I don’t apply the code, because. on other version it works
ZYY still offers an option through audiotrack, does anyone know if there will be a delay between cycles?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question