home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / mwave2.zip / readme.txt < prev   
Text File  |  1994-01-25  |  3KB  |  72 lines

  1.  *********************************************************************
  2.  *                                                                   *
  3.  *      Wave maker for SoundBlaster 1.5 by HaJott                    *
  4.  *                                                                   *
  5.  *********************************************************************
  6.  
  7.   This is a simple wavemaker for OS/2 2.1 and DOS.
  8.   It generates sine, pulse and triangle waves and writes it in a file
  9.   : c:\mmos2\sounds\aaa.wav
  10.   
  11.   Don't be angry about the pascal source, I know, that it could be done
  12.   better. But it was a fine way to find out the structure of
  13.   *.wav files.
  14.   I would like to add a inverse FOURIER transformation to create
  15.   more sounds. If you have a sourceccode of it, please let me know.
  16.  
  17.  
  18.   Try it and play with it !
  19.  
  20.  
  21.   File in the zip archive :
  22.  
  23.   emx.dll           need to run mwave.exe 
  24.   mwave.c           generated by p2c
  25.   mwave.exe         OS/2 executable
  26.   mwave.mak         Makefile : nmake -f mwave.mak
  27.                     (OS/2 and emx with nmake/2)
  28.   mwave.pas         pascal file for p2c
  29.   mwave.tp          turbo pascal file
  30.   mwavetp.exe       DOS executable
  31.   readme.txt        this file
  32.  
  33.  
  34.  
  35.   Discription of data types used to make a *.wav file :
  36.  
  37.   type
  38.   chunk = record
  39.     main               : string[4];             = RIFF
  40.     main_length        : array[0..3] of byte;   = length of file
  41.     chunk_type         : string[4];             = WAVE
  42.     sub_chunk          : string[4];             = fmt_ :_=space=ASCII 32
  43.     sub_chunk_length   : array[0..3] of byte;   = always 16 bytes
  44.                                                   don't know why !
  45.     format             : word;                  = always 1 for PCM mode
  46.                          every SoundBlaster works with format = 1
  47.     modus              : word;                  1 = mono, 2 = stereo
  48.     sample_freq        : array[0..3] of byte;   11.025 kHz = $2B11
  49.                                                 22.050 kHz = $5622
  50.                                                 44.100 kHz = $AC44
  51.     bytes_per_sec      : array[0..3] of byte;   as it is
  52.     bytes_per_sample   : word;                  1 = 8 Bit, 2 = 16 Bit
  53.     bits_per_sample    : word;                  only 8, 12 or 16
  54.     data_chunk         : string[4];             = data
  55.     data_length        : array[0..3] of byte;   length of data block
  56.     rf                 : array[1..16384] of byte = wavedata
  57.   end;
  58.  
  59.  
  60.  
  61.  
  62.    Hans-Juergen Hochkamp
  63.    Universitaet-GHS-Essen, FB 8
  64.    Institut fuer Physikalische und Theoretische Chemie
  65.    Universitaetsstr. 3-7
  66.    D-45141 Essen
  67.    Germany
  68.    Tel.  : 49-(0)201-183-3059
  69.    FAX   : 49-(0)201-183-3228
  70.    EMail : cph080@vm.hrz.uni-essen.de
  71.  
  72.