Seamless Looping with SoundPool?
in
Android Processing
•
1 year ago
Hello,
I am trying to loop short (20kb), gapless ogg files with the SoundPool
class and cannot get consistent results while testing on hardware. It
always plays back perfectly using the emulator but when I test on a
Nexus 1, or on a Samsumg Galaxy Tab 10.1 there are audible pops or
clicks at every loop point. What is very strange is that while
consistent once the application has started, the clicks are slightly
different every time I restart the app and on rare occasions (more
frequently on the tablet) the loop plays correctly.
The results are no better using MediaPlayer. Is it unreasonable to
expect gapless playback of audio loops on android? Surely someone has
similar functionality working properly?
Thanks!
I am trying to loop short (20kb), gapless ogg files with the SoundPool
class and cannot get consistent results while testing on hardware. It
always plays back perfectly using the emulator but when I test on a
Nexus 1, or on a Samsumg Galaxy Tab 10.1 there are audible pops or
clicks at every loop point. What is very strange is that while
consistent once the application has started, the clicks are slightly
different every time I restart the app and on rare occasions (more
frequently on the tablet) the loop plays correctly.
The results are no better using MediaPlayer. Is it unreasonable to
expect gapless playback of audio loops on android? Surely someone has
similar functionality working properly?
Thanks!
2