Cool! I wish I could hear some of what you are up to. I'm not clear on what you are thinking of in terms of a boolean. I'm also not sure I want to invest a lot more time in this until I get it working with some sort of compressed sound as input.
I just mean you can spam the play button on your app and it plays multiple times (not sure if you wanted this feature or not?). I have been using slick for my sound, but im sure there is something similar to,
1 2 3
| if(music.isPlaying()) playButton = notClickable; yalpButton = notClickable; |