home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / prog / pcgpe10.arj / VOC.TXT < prev    next >
Text File  |  1994-05-10  |  3KB  |  73 lines

  1.  
  2. Creative Voice (VOC) file format
  3. --------------------------------
  4.  
  5. ~From: galt@dsd.es.com
  6.  
  7. (byte numbers are hex!)
  8.  
  9.     HEADER (bytes 00-19)
  10.     Series of DATA BLOCKS (bytes 1A+) [Must end w/ Terminator Block]
  11.  
  12. - ---------------------------------------------------------------
  13.  
  14. HEADER:
  15. =======
  16.      byte #     Description
  17.      ------     ------------------------------------------
  18.      00-12      "Creative Voice File"
  19.      13         1A (eof to abort printing of file)
  20.      14-15      Offset of first datablock in .voc file (std 1A 00
  21.                 in Intel Notation)
  22.      16-17      Version number (minor,major) (VOC-HDR puts 0A 01)
  23.      18-19      2's Comp of Ver. # + 1234h (VOC-HDR puts 29 11)
  24.  
  25. - ---------------------------------------------------------------
  26.  
  27. DATA BLOCK:
  28. ===========
  29.  
  30.    Data Block:  TYPE(1-byte), SIZE(3-bytes), INFO(0+ bytes)
  31.    NOTE: Terminator Block is an exception -- it has only the TYPE byte.
  32.  
  33.       TYPE   Description     Size (3-byte int)   Info
  34.       ----   -----------     -----------------   -----------------------
  35.       00     Terminator      (NONE)              (NONE)
  36.       01     Sound data      2+length of data    *
  37.       02     Sound continue  length of data      Voice Data
  38.       03     Silence         3                   **
  39.       04     Marker          2                   Marker# (2 bytes)
  40.       05     ASCII           length of string    null terminated string
  41.       06     Repeat          2                   Count# (2 bytes)
  42.       07     End repeat      0                   (NONE)
  43.       08     Extended        4                   ***
  44.  
  45.       *Sound Info Format:       **Silence Info Format:
  46.        ---------------------      ----------------------------
  47.        00   Sample Rate           00-01  Length of silence - 1
  48.        01   Compression Type      02     Sample Rate
  49.        02+  Voice Data
  50.  
  51.     ***Extended Info Format:
  52.        ---------------------
  53.        00-01  Time Constant: Mono: 65536 - (256000000/sample_rate)
  54.                              Stereo: 65536 - (25600000/(2*sample_rate))
  55.        02     Pack
  56.        03     Mode: 0 = mono
  57.                     1 = stereo
  58.  
  59.  
  60.   Marker#           -- Driver keeps the most recent marker in a status byte
  61.   Count#            -- Number of repetitions + 1
  62.                          Count# may be 1 to FFFE for 0 - FFFD repetitions
  63.                          or FFFF for endless repetitions
  64.   Sample Rate       -- SR byte = 256-(1000000/sample_rate)
  65.   Length of silence -- in units of sampling cycle
  66.   Compression Type  -- of voice data
  67.                          8-bits    = 0
  68.                          4-bits    = 1
  69.                          2.6-bits  = 2
  70.                          2-bits    = 3
  71.                          Multi DAC = 3+(# of channels) [interesting--
  72.                                        this isn't in the developer's manual]
  73.