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();
file plays....
when (millis() - playingStartedAt) > duration your file has ended
see:
https://www.processing.org/reference/libraries/sound/SoundFile_duration_.html
Answers
I guess when you start playing set a new variable playingStartedAt to millis();
file plays....
when (millis() - playingStartedAt) > duration your file has ended
see:
https://www.processing.org/reference/libraries/sound/SoundFile_duration_.html