This browser does not have a Java Plug-in.
Get the latest Java Plug-in here.

This sketch demonstrates how to use the loop method of a Playable class. The class used here is AudioPlayer, but you can also loop an AudioSnippet. When you call loop() it will make the Playable playback in an infinite loop. If you want to make it stop looping you can call play() and it will finish the current loop and then stop. Press 'l' to start the player looping.

Source code: loop waveform

Built with Processing