Android Question SoundPool not working on click Event [Solved]

AndroidMadhu

Active Member
Licensed User
Hello,
I am working on soundpool lib. On button click event I want to stop the sound.
Intermittently sometimes it is working and sometimes it not.
Below is the code base :
B4X:
Starter.SP.Stop(Starter.PlayId1)
Starter.SP.Release()
*********************************
LoadId1 = SP.Load(File.DirAssets, "siren.wav")
PlayId1 = SP.Play(LoadId1, 1, 1, 1, 1, 1)

Please advice
 

hatzisn

Well-Known Member
Licensed User
How did you solve this? What was wrong?
 
Upvote 0
Top