how to detect end of music

I want to play through a playlist, but I cannot find how to detect end of music / sound / file to play the next.

Any suggestion?


with ofSoundPlayer, you could use the methods:


(have a look into Soundplayer - Examples)

and do it like…

if (Sample.getIsPlaying()==false) {…play next sample};


Thank you for your help!

wooh!! same query I had and was looking for the solution of the same.

you can also check out sc downloader for the same.