OMG, thans a lot for all this information!!! I'll definitely look into implementing that! :):)Apollo wrote:Just a small note on CDXA, there are actually XA files using 18,900khz stereo playback rates too than just 37,800Hz and 2 channels which is admittedly more common.
Like for example the PSX versions of C&C RA1.
As for ima adpcm header adder, you would need to add the various default block sizes as per each khz in default MS encoder.
mono
8khz/11khz/16khz= 256
22khz/32khz=512
44khz/48khz=1024
for stereo previous apply except double the block size so 8khz stereo=512
xbox adpcm uses always 36 mono or 72 stereo blocksizes regardless of khz but such small block sizes waste tons of space.
fact chunk can be left unwritten but the last field before it or data is sadly demanded by most players too except vlc.
18,900khz stereo? Only encountered mono so far. Anyway, the header should be the same as channels and frequency isn't stated at all.