This is a simple example for an audio player that plays a list of audio files and loops the list.
http://www.mediafire.com/file/pv2ivm8sitcpris/playlist.rar
EDIT: After decompressing place some .wav files into the folder named "audio". Then just run the application.