/[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 1269 by stargo, Sun Sep 17 20:06:37 2006 UTC revision 1270 by stargo, Mon Sep 18 10:20:02 2006 UTC
# Line 45  rdpsnd_dsp_softvol(unsigned char *buffer Line 45  rdpsnd_dsp_softvol(unsigned char *buffer
45          if ((softvol_left == MAX_VOLUME) && (softvol_right == MAX_VOLUME))          if ((softvol_left == MAX_VOLUME) && (softvol_right == MAX_VOLUME))
46                  return;                  return;
47    
48          factor_left = (softvol_left * 256) / 65535;          factor_left = (softvol_left * 256) / MAX_VOLUME;
49          factor_right = (softvol_right * 256) / 65535;          factor_right = (softvol_right * 256) / MAX_VOLUME;
50    
51          if (format->nChannels == 1)          if (format->nChannels == 1)
52          {          {

Legend:
Removed from v.1269  
changed lines
  Added in v.1270

  ViewVC Help
Powered by ViewVC 1.1.26