if(i > count) i = count; if(i > cc) { i = cc; vibflag = 1; } else cc -= i; 
if(i > count) { i = count; } if(i > cc) { i = cc; vibflag = 1; } else {cc -= i;} 
static sample_t *rs_vib_loop(Voice *vp, int32 count){  /* Play sample until end-of-loop, skip back and continue. */  splen_t    ofs = vp->sample_offset,    ls = vp->sample->loop_start,    le = vp->sample->loop_end,    ll = le - vp->sample->loop_start;  sample_t    *dest = resample_buffer + resample_buffer_offset,    *src = vp->sample->data;  int cc = vp->vibrato_control_counter;  int32 incr = vp->sample_increment;  resample_rec_t resrc;#ifdef PRECALC_LOOPS  int32 i, j;  int vibflag=0;#endif  resrc.loop_start = ls;  resrc.loop_end = le;  resrc.data_length =vp->sample->data_length;#ifdef PRECALC_LOOPS  while (count)    {      /* Hopefully the loop is longer than an increment */      while(ofs >= le)	ofs -= ll;      /* Precalc how many times to go through the loop, taking	 the vibrato control ratio into account this time. */      i = PRECALC_LOOP_COUNT(ofs, le, incr);      if(i > count) i = count;      if(i > cc)	{	  i = cc;	  vibflag = 1;	}      else cc -= i;      count -= i;      for(j = 0; j < i; j++)	{	  RESAMPLATION;	  ofs += incr;	}      if(vibflag)	{	  cc = vp->vibrato_control_ratio;	  incr = update_vibrato(vp, 0);	  vibflag = 0;	}    }#else /* PRECALC_LOOPS */  while (count--)    {      if (!cc--)	{	  cc=vp->vibrato_control_ratio;	  incr=update_vibrato(vp, 0);	}      RESAMPLATION;      ofs += incr;      if (ofs >= le)	ofs -= ll; /* Hopefully the loop is longer than an increment. */    }#endif /* PRECALC_LOOPS */  vp->vibrato_control_counter = cc;  vp->sample_increment = incr;  vp->sample_offset = ofs; /* Update offset */  return resample_buffer + resample_buffer_offset;}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/7c308a2fe92dbf66b2e18fbedd624d1022ba754f/resample.c/clean/timidity/resample.c