complete MakeSampleWavFile.cc