We are about to switch to a new forum software. Until then we have removed the registration on this forum.
using the sound processing library
I guess when you start playing set a new variable playingStartedAt to millis();
when (millis() - playingStartedAt) > duration your file has ended