home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0676.ZIP / CCE_0676.PD / WINCUT / DEUTSCH / DSVM.TXT next >
Text File  |  1993-04-22  |  1KB  |  45 lines

  1. DVSM Samples
  2. ------------
  3.  
  4.  
  5. typedef struct
  6. {
  7.     char magic[6];     /* "DVSM\0\0" */
  8.     int headlen;       /* Headlen in Bytes*/
  9.     int freq;          /* Samplefrequenz 0=8kHz 7=50kHz (erlaubte 
  10.                           CODEC Frequenzen)*/
  11.     char pack;         /* 0=Ungepackt, 2=DVS Packmethode(CPU)*/
  12.     char mode;         /* 0=Stereo 8Bit,1=Stereo 16Bit,2=Mono 8Bit*/
  13.     long blocklen;     /* falls pack>1: Länge eines gepackten Blocks*/ 
  14. } DVSMHEAD;
  15.  
  16.  
  17. Packformat (CPU)
  18. ---------------
  19.  (im Moment nur für 16 Bit Stereo Samples!!!!)
  20.  
  21. Ein Block ist wie folgt aufgebaut (Länge siehe 'blocklen'):
  22.  
  23.  1. Soundword Links    (16 Bit)
  24.  1. Soundword Rechts   (16 Bit)
  25.  1. Distanzwert Links  (8 Bit)
  26.  1. Distanzwert Rechts (8 Bit)
  27.                  .
  28.                  .
  29.                  .
  30.  n. Distanzwert Links  (8 Bit)
  31.  n. Distanzwert Rechts (8 Bit)
  32.  
  33.  
  34. Distanzwerte sind Zeiger auf eine Tabelle mit den 'echten'
  35. 16 Bit Distanzwerten. Die Tabelle enthält Funktionwerte der
  36. Funktion
  37.                    / -1.084618362^-x  für x<0  (-128 bis -1)
  38.             f(x)= {   0               für x=0  (0)
  39.                    \  1.084618362^x   für x>0  (1 bis 127)
  40.                    
  41. Die Tabelle ist (logischerweise) 256 Bytes lang!
  42.  
  43.  
  44. Andreas Binner
  45.