Implement looping for OpenAL music.

Also added some error logging.