Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MOD File Format - <b>data block</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Data Block

 The Data Block is sub-divided into multiple sub-blocks of data.

 a)  The first byte of each sub-block is called the Block Type (BLKTYPE).
      It indicates the type of data contained in the sub-block.

 b)  The next three bytes is the 24-bit Block Length (BLKLEN). It is the
      number of bytes in the sub-block _excluding_ the BLKTYPE and BLKLEN
      fields. Only the Terminator sub-block does not have a BLKLEN field.

 c)  Depending on BLKTYPE, the rest of the data in the sub-block may be
      voice attributes (such as sampling rate and packing), voice data or
      other information (such as Marker and ASCII text).

 Your program needs not interpret all the BLKTYPE. For those BLKTYPEs it
 does not recognizem it can move to next sub-block based on the BLKLEN
 easily.  In most of the applications, your program can simply pass the
 address of the Data Block to the CT-VOICE driver which will interpret the
 Voice file and perform the output accordingly.

See Also: Header Block Type 0

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson