Hi,
I have a simple app that plays random sounds which are pulled from a list. A few of the requirements are -
-
The same sound should not be played back to back. So even though the sound is selected at random sometimes the new one happens to be the as the old one. I therefore do a check to make sure that this is not true before I play the sound.
-
I want the sounds to play for random periods of time and once that time has expired for a sound, it should stop playing before the next sound is selected.
-
When I press the Start button, it changes to a Stop button. Once the Stop button is pressed, the sound should stop being played.
Blocks are as follows -
This works perfectly in the web previewer, but it does not in the Android preview.
-
Even though the next sound has started, the last sound does not stop so if the first sound is say 15 seconds long, the second sound which may be 5 seconds starts (while #1 is still being played) and then #3 may start overlapping the other 2.
-
When I press the Stop button, it will change to Stop but the app keeps running.
I have uninstalled and reinstalled the Thunkable app but that makes no difference.
I would be grateful for any assistance.
Thanks