[BACK]Return to dsp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Diff for /src/usr.bin/aucat/dsp.c between version 1.15 and 1.16

version 1.15, 2021/01/11 14:45:51 version 1.16, 2021/01/12 15:46:53
Line 18 
Line 18 
 #include "dsp.h"  #include "dsp.h"
 #include "utils.h"  #include "utils.h"
   
 int aparams_ctltovol[128] = {  const int aparams_ctltovol[128] = {
             0,              0,
           256,    266,    276,    287,    299,    310,    323,    335,            256,    266,    276,    287,    299,    310,    323,    335,
           348,    362,    376,    391,    406,    422,    439,    456,            348,    362,    376,    391,    406,    422,    439,    456,
Line 38 
Line 38 
         26008,  27029,  28090,  29193,  30339,  31530,  32768          26008,  27029,  28090,  29193,  30339,  31530,  32768
 };  };
   
 short dec_ulawmap[256] = {  const short dec_ulawmap[256] = {
         -32124, -31100, -30076, -29052, -28028, -27004, -25980, -24956,          -32124, -31100, -30076, -29052, -28028, -27004, -25980, -24956,
         -23932, -22908, -21884, -20860, -19836, -18812, -17788, -16764,          -23932, -22908, -21884, -20860, -19836, -18812, -17788, -16764,
         -15996, -15484, -14972, -14460, -13948, -13436, -12924, -12412,          -15996, -15484, -14972, -14460, -13948, -13436, -12924, -12412,
Line 73 
Line 73 
             56,     48,     40,     32,     24,     16,      8,      0              56,     48,     40,     32,     24,     16,      8,      0
 };  };
   
 short dec_alawmap[256] = {  const short dec_alawmap[256] = {
          -5504,  -5248,  -6016,  -5760,  -4480,  -4224,  -4992,  -4736,           -5504,  -5248,  -6016,  -5760,  -4480,  -4224,  -4992,  -4736,
          -7552,  -7296,  -8064,  -7808,  -6528,  -6272,  -7040,  -6784,           -7552,  -7296,  -8064,  -7808,  -6528,  -6272,  -7040,  -6784,
          -2752,  -2624,  -3008,  -2880,  -2240,  -2112,  -2496,  -2368,           -2752,  -2624,  -3008,  -2880,  -2240,  -2112,  -2496,  -2368,
Line 108 
Line 108 
            944,    912,   1008,    976,    816,    784,    880,    848             944,    912,   1008,    976,    816,    784,    880,    848
 };  };
   
 int resamp_filt[RESAMP_LENGTH / RESAMP_STEP + 1] = {  const int resamp_filt[RESAMP_LENGTH / RESAMP_STEP + 1] = {
               0,       0,       3,       9,      22,      42,      73,     116,                0,       0,       3,       9,      22,      42,      73,     116,
             174,     248,     341,     454,     589,     749,     934,    1148,              174,     248,     341,     454,     589,     749,     934,    1148,
            1392,    1666,    1974,    2316,    2693,    3107,    3560,    4051,             1392,    1666,    1974,    2316,    2693,    3107,    3560,    4051,
Line 842 
Line 842 
         unsigned int f;          unsigned int f;
         unsigned char *idata;          unsigned char *idata;
         adata_t *odata;          adata_t *odata;
         short *map;          const short *map;
   
 #ifdef DEBUG  #ifdef DEBUG
         if (log_level >= 4) {          if (log_level >= 4) {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16