use constants for flags and wavebank miniformat, assert on unknown flags factor out final header building
use constants for flags and wavebank miniformat, assert on unknown flags
factor out final header building

fesh0r/xnb_parse,fesh0r/xnb_parse