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

Diff for /src/usr.bin/sndiod/dsp.c between version 1.8 and 1.9

version 1.8, 2014/10/12 21:52:27 version 1.9, 2016/01/08 16:17:31
Line 296 
Line 296 
  * initialize resampler with ibufsz/obufsz factor and "nch" channels   * initialize resampler with ibufsz/obufsz factor and "nch" channels
  */   */
 void  void
 resamp_init(struct resamp *p, unsigned int iblksz, unsigned int oblksz, int nch)  resamp_init(struct resamp *p, unsigned int iblksz,
       unsigned int oblksz, int nch)
 {  {
         unsigned int i;          unsigned int i;
   
Line 446 
Line 447 
                 p->bias = (1U << 31) >> p->shift;                  p->bias = (1U << 31) >> p->shift;
         } else {          } else {
                 p->bias = 0;                  p->bias = 0;
         }          }
         if (!par->le) {          if (!par->le) {
                 p->bfirst = par->bps - 1;                  p->bfirst = par->bps - 1;
                 p->bnext = -1;                  p->bnext = -1;
Line 539 
Line 540 
                 p->bias = (1U << 31) >> p->shift;                  p->bias = (1U << 31) >> p->shift;
         } else {          } else {
                 p->bias = 0;                  p->bias = 0;
         }          }
         if (par->le) {          if (par->le) {
                 p->bfirst = par->bps - 1;                  p->bfirst = par->bps - 1;
                 p->bnext = -1;                  p->bnext = -1;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9