If it works as root, is it a permissions thing? Can you play sounds via other applications? Does your user need to be added to the "sound" or "audio" group?