Comment 10 for bug 895891

Revision history for this message
Apollo (apollo) wrote :

Flag values??? What you call flag is actually format type identifier entry after the frequency and no, there is no separate value to tell channels for example, it is all done in one and same.

list of proper format types within index is following

02 00 00 00 (PCM Mono 8-bit) ;Nobody likes
03 00 00 00 (PCM Stereo 8-bit) ;8 bit pcm quality anyway...
06 00 00 00 (PCM Mono 16-bit)
07 00 00 00 (PCM Stereo 16-bit)
0C 00 00 00 (IMA ADPCM Mono)
0D 00 00 00 (IMA ADPCM Stereo)

in case of IMA, afterwards follows the 4 byte value of adpcm block/chunk size used in encoding, this varies depending on encoder/khz.

Simplest would be to have a fetching routine get all the info from wav header and change to idx equivalents to pass on to the bag sound engine decoder.