home *** CD-ROM | disk | FTP | other *** search
/ Sound Sensations! / sound_sensations.iso / convert / snd2voc / vocform.doc < prev   
Text File  |  1991-05-15  |  3KB  |  75 lines

  1. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2.  
  3. I used the info in this file to write the snd2voc program.
  4. I got this file from the Music Channel BBS of Connecticut,
  5. 203-646-3058 (Hartford,Ct.).  I got the info on the .SND
  6. format from the sounder.wri file that came with sounder.
  7.  
  8.                                 --Bailey Brown
  9.  
  10. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  11.  
  12.  
  13. I have figured out most of the .VOC format, and here it is:
  14. =============================================================
  15.  
  16.  
  17. HEADER: (bytes 00-19)
  18. =======
  19.      byte #           Description
  20.      ------           -----------
  21.      00-12            Creative Voice File
  22.      13               1A (eof to abort printing of file)
  23.      14-15            1A 00  word offset in file of first data block
  24.      16-17            Version number             (VOC-HDR puts 0A 01)
  25.      18-19            2's Comp of Ver. # + 1234h (VOC-HDR puts 29 11)
  26.  
  27. DATA: (bytes 1A+)    A series of data blocks terminated by 00
  28. =====
  29.  
  30.    Data Block:  TYPE(1-byte), SIZE(3-bytes), INFO(0+ bytes)
  31.    -----------
  32.  
  33.       TYPE   Description   Size (3-byte int)   info
  34.       ----   -----------   -----------------   ----
  35.       01     Sound data    2+length of data    *
  36.       02     ????
  37.       03     Silence       3                   *
  38.       04     Marker        2                   marker #
  39.       05     ????
  40.       06     Repeat        2                   # of repetitions
  41.       07     End repeat    0
  42.       08+    ????
  43.  
  44. *Sound info format:         *Silence info format:
  45.  -----------------           --------------------
  46.  00   Sample rate            00-01  Length of silence (weird encryption)
  47.  01   Compression type       02     38
  48.  02+  Data
  49.  
  50.  
  51. Sample rate       -- SR byte = 256-(1000000/sample_rate)
  52. Length of silence -- (# of .1 seconds encrypted)
  53. Compression type  -- 8-bits    = 0
  54.                      4-bits    = 1
  55.                      2.5-bits  = 2
  56.                      2-bits    = 3
  57.                      Multi DAC = 3+(# of channels)
  58.  
  59. Silence encoding in VOXKIT finds quiet places in file, and creates a separate
  60. block that is of type Silence.
  61.  
  62.  
  63.  
  64. The only remaining mysteries are what types 2&5&8+ are if they exist, and the
  65. exact conversion of the silence length integer to seconds.  If you have any
  66. more information, please email me at:   galt@dsd.es.com
  67. I hope this info will help to create more  public domain utilities for the
  68. soundblaster.
  69.        Greg
  70.  
  71. ***************************************
  72. * uploaded courtesy of the SNDhunters *
  73. ***************************************
  74.  
  75.