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 :
Please advice
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