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?

Hi,

with ofSoundPlayer, you could use the methods:

MySample.setLoop(false);
MySample.play();
MySample.getIsPlaying();

(have a look into Soundplayer - Examples)

and do it like…

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

K.

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.