Loop a sound by using minim

Hi, I am trying to play a sound by using the library: minim when a variable becomes true. The problem occurs when I want to loop the sound when it is done playing so it would be nice if I could get a simple example to see how it works :slight_smile:

Have you seen this (python). Loop function works the same in java mode.

minim = Minim(this)
minim.loop()

Also take a look at the bundled examples for the library: File > Examples…

1 Like

Here is AudioPlayer.loop() in the minim documentation:

http://code.compartmental.net/minim/audioplayer_method_loop.html