The Automator Loop Utility will take care of all the work.
It is a 12 channel mixed signal logic timing and protocol analysis application.
Simple, tiny menu-bar app that plays music files in a loop from a source folder or a streaming URL.