Use libsndfile for wav file input
Use libsndfile for wav output as well.