Correctly outputs a .wav file.