/[enigma]/enigma/src/sound.cc
ViewVC logotype

Diff of /enigma/src/sound.cc

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

revision 1.9 by mhawlisch, Wed Feb 26 14:48:39 2003 UTC revision 1.10 by dheck, Fri Apr 4 19:55:32 2003 UTC
# Line 253  namespace Line 253  namespace
253              int srcidx = static_cast<int>(floor(srcpos));              int srcidx = static_cast<int>(floor(srcpos));
254              float a2 = srcpos - srcidx;              float a2 = srcpos - srcidx;
255              float a1 = 1.0f - a2;              float a1 = 1.0f - a2;
256              dst[i] = static_cast<Sint8> (a1*src[srcidx] + a2*src[srcidx+1]);              dst[i] = static_cast<Sint8> ((a1*src[srcidx] + a2*src[srcidx+1])/2);
257              srcpos += ratio;              srcpos += ratio;
258          }          }
259    
260          return newdata;          return newdata;
261      }      }
262    
263    #ifndef HAVE_MIX_QUICKLOAD
264    
265    #endif
266    
267  }  }
268    
269    

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26