add "eof" signal to tracks. add code that, if all tracks have ended,
restarts playback from the beginning.