/[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.7 by dheck, Fri Jan 24 12:27:06 2003 UTC revision 1.8 by dheck, Thu Jan 30 20:35:06 2003 UTC
# Line 242  namespace Line 242  namespace
242          Sint8 *dst = newdata;          Sint8 *dst = newdata;
243                    
244          float srcpos = 0;          float srcpos = 0;
245          for (int i=0; i<*newlen; ++i) {          for (unsigned i=0; i<*newlen; ++i) {
246              int srcidx = static_cast<int>(floor(srcpos));              int srcidx = static_cast<int>(floor(srcpos));
247              float a2 = srcpos - srcidx;              float a2 = srcpos - srcidx;
248              float a1 = 1.0f - a2;              float a1 = 1.0f - a2;

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

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