11.6.4 File Headers
VS1063 automatically creates a suitable header for the selected encoding mode. If you have
selected MP3 or Ogg Vorbis, the headers will be in those formats, otherwise you get a RIFF
WAV header with the correct sample rate, number of channels, and other information. (If you
have set bit 10 of SCI_AICTRL3, the RIFF WAV header is not generated.) When you finish
encoding you have to fix the RIFF size and data size fields.