Soundpool not looping in android 4.3

前端 未结 2 1545
长发绾君心
长发绾君心 2021-01-18 05:03

I have a couple of apps in which I use soundpool to loop the sound of a ticking clock, this works fine in all previous versions of android but after upgrading to android 4.3

相关标签:
2条回答
  • 2021-01-18 05:09

    When calling SoundPool.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate) I set the rate to 0.99f instead of 1, actually anything but 1 appears to work. It loops as expected on android 5.0.1. If rate set to 1 it loops about twice then it stops. I had the same loop problem, however it works on android 4.3 but not 5.0.1 when using rate 1.

    0 讨论(0)
  • 2021-01-18 05:18

    Check this link. https://code.google.com/p/android/issues/detail?id=58113 Soundpool stopped working in 4.3

    0 讨论(0)
提交回复
热议问题