Android Question some better than Soundpool (fails)

studio4

Member
Licensed User
Longtime User
Hello community,

I am using Soundpool to play some short sounds. I am using this method:

Dim SPLAY As SoundPool
Dim SOUNDPLAY As Int
SPLAY.Initialize(100)
SOUNDPLAY = SPLAY.Load(File.DirAssets,"xxx.ogg")

SPLAY.PLAY(SOUNDPLAY, 1,1,1,0,1)

It works perfect when the sound is shorter than 5 second, but when I try to play a long sound (1 minute), soundpool stops.

I do not want to show any interface, only that the sound play such as background.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…