home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / bit / listserv / win3l / 11773 < prev    next >
Encoding:
Text File  |  1992-12-23  |  3.2 KB  |  85 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!X1SUN9.CCL.ITRI.ORG.TW!JULIAN
  3. Message-ID: <9212230035.AA01120@x1sun9.ccl.itri.org.tw>
  4. Newsgroups: bit.listserv.win3-l
  5. Date:         Wed, 23 Dec 1992 08:35:28 CST
  6. Sender:       Microsoft Windows Version 3 Forum <WIN3-L@UICVM.BITNET>
  7. From:         Jiunn_tyng Guo SENTINEL <julian@X1SUN9.CCL.ITRI.ORG.TW>
  8. Subject:      Re : Creative Voice File
  9. Lines: 74
  10.  
  11. Cloves :
  12.  
  13. The following is the file format for Creative Voice file (*.voc).
  14.  
  15. ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
  16.  
  17. Creative Voice (VOC) file format
  18. --------------------------------
  19.  
  20. From: galt@dsd.es.com
  21.  
  22. (byte numbers are hex!)
  23.  
  24.     HEADER (bytes 00-19)
  25.     Series of DATA BLOCKS (bytes 1A+) [Must end w/ Terminator Block]
  26.  
  27. - ---------------------------------------------------------------
  28.  
  29. HEADER:
  30. =======
  31.      byte #     Description
  32.      ------     ------------------------------------------
  33.      00-12      "Creative Voice File"
  34.      13         1A (eof to abort printing of file)
  35.      14-15      Offset of first datablock in .voc file (std 1A 00
  36.                 in Intel Notation)
  37.      16-17      Version number (minor,major) (VOC-HDR puts 0A 01)
  38.      18-19      2's Comp of Ver. # + 1234h (VOC-HDR puts 29 11)
  39.  
  40. - ---------------------------------------------------------------
  41.  
  42. DATA BLOCK:
  43. ===========
  44.  
  45.    Data Block:  TYPE(1-byte), SIZE(3-bytes), INFO(0+ bytes)
  46.    NOTE: Terminator Block is an exception -- it has only the TYPE byte.
  47.  
  48.       TYPE   Description     Size (3-byte int)   Info
  49.       ----   -----------     -----------------   -----------------------
  50.       00     Terminator      (NONE)              (NONE)
  51.       01     Sound data      2+length of data    *
  52.       02     Sound continue  length of data      Voice Data
  53.       03     Silence         3                   **
  54.       04     Marker          2                   Marker# (2 bytes)
  55.       05     ASCII           length of string    null terminated string
  56.       06     Repeat          2                   Count# (2 bytes)
  57.       07     End repeat      0                   (NONE)
  58.  
  59.       *Sound Info Format:       **Silence Info Format:
  60.        ---------------------      ----------------------------
  61.        00   Sample Rate           00-01  Length of silence - 1
  62.        01   Compression Type      02     Sample Rate
  63.        02+  Voice Data
  64.  
  65.  
  66.   Marker#           -- Driver keeps the most recent marker in a status byte
  67.   Count#            -- Number of repetitions + 1
  68.                          Count# may be 1 to FFFE for 0 - FFFD repetitions
  69.                          or FFFF for endless repetitions
  70.   Sample Rate       -- SR byte = 256-(1000000/sample_rate)
  71.   Length of silence -- in units of sampling cycle
  72.   Compression Type  -- of voice data
  73.                          8-bits    = 0
  74.                          4-bits    = 1
  75.                          2.6-bits  = 2
  76.                          2-bits    = 3
  77.                          Multi DAC = 3+(# of channels) [interesting--
  78.                                        this isn't in the developer's manual]
  79.  
  80. ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
  81.  
  82. Julian Guo      12/23, 1992
  83.  
  84. julian@x1sun9.ccl.itri.org.tw
  85.