To view this content, you need to install Java from java.com

This sketch demonstrates how to use the isPlaying method of a Playable class. The class used here is AudioPlayer, but you can also check the play status of an AudioSnippet. A Playable is considered to be playing if it is sending audio to the system. Press 'p' to play the file and 's' to pause it. Text on the screen will indicate the current playstate.

Source code: isPlaying waveform

Built with Processing