Made sound loading and playing more general