I've got a couple of scripts, one starts madplay in the background, playing my mp3s on a random playlist, the other kills all the madplay processes so I can stop the music whenever I need to.
Unfortunately, any time I'm playing music and open an application, when I return to the menu the music...