I searched soundpool posts and didn't find an answer. What I want to do is stop program activities like reading buttons in order to keep from re-triggering a soundpool sound. Is there a simple code to stop the program until a sound finishes?
Thank you, anyone who knows an answer.
Thank you, anyone who knows an answer.
B4X:
sub button_one_click 'example
sp.play(nameID,1,1,1,0,1)
' a VAR is incremented here,which shouldn't be allowed to be rapidly incremented by
'pressing the button that started this routine. Waiting for the sound to finish would discourage
' double or multiple clicking.
End Sub