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

This sketch demonstrates how to use the isLooping method of a Playable class. The class used here is AudioPlayer. You can also check the loop status of an AudioSnippet, but it will return true whether the snippet is looping or just playing because there is no way to query an Clips loop status. Press 'p' to play the file and 'l' to loop the file. Text on the screen will indicate whether or not the file is looping.

Source code: isLooping waveform

Built with Processing