Replay Audio

Hello,
I’m a beginner, I’m just learning Juce.
I’m trying to build a looper and I was thinking I would just replay the file when it ends.
But I’m not sure how the determine when the audio has stopped playing.
Any pointers on that?

I did check the loop tutorial, but I’m trying to loop regular songs that are more than 2-3 minutes long, so I thought that is not suitable because of the buffersize.

Thank you very much!

Your code will need to track playback location relative to file length, and move to the start of the file again after that has been reached.