Simple wav file player using libsndfile and portaudio