/[rdesktop]/sourceforge.net/trunk/rdesktop/rdpsnd_dsp.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdpsnd_dsp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1288 by stargo, Sun Oct 1 21:46:38 2006 UTC revision 1291 by stargo, Sun Oct 1 23:42:14 2006 UTC
# Line 299  rdpsnd_dsp_resample(unsigned char **out, Line 299  rdpsnd_dsp_resample(unsigned char **out,
299    
300          for (i = 0; i < outsize / (resample_to_channels * samplewidth); i++)          for (i = 0; i < outsize / (resample_to_channels * samplewidth); i++)
301          {          {
302                  int source = ((i * 1000) + ratio1k - 1000) / (ratio1k + 1);                  int source = (i * 1000) / ratio1k;
303                  int j;                  int j;
304    
305                  if (source * resample_to_channels + samplewidth > size)                  if (source * resample_to_channels + samplewidth > size)

Legend:
Removed from v.1288  
changed lines
  Added in v.1291

  ViewVC Help
Powered by ViewVC 1.1.26