Use libsndfile for wav output as well