Generates a header to write to a .wav-file. After that, you can write a raw buffer.