Fixed wave file writing