http://developer.android.com/reference/android/media/SoundPool.html Sounds can be looped by setting a non-zero loop value. A value of -1 causes the sound to loop forever.
soundPool.play(soundPoolMap.get(sound), streamVolume, streamVolume, 1, -1, 1f); On 24 ноя, 17:35, Jags <jag...@gmail.com> wrote: > I am using soundpool to use sounds in my app. One of the sounds i need > to play continuously in background. any example how to do this ? > > soundPool.play(soundPoolMap.get(sound), streamVolume, streamVolume, 1, > 0, 1f); > > regards -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en