[Scummvm-cvs-logs] CVS: scummvm/sound rate.cpp,1.22,1.23
Max Horn
fingolfin at users.sourceforge.net
Sat Aug 2 12:18:09 CEST 2003
Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv1992
Modified Files:
rate.cpp
Log Message:
one addition less
Index: rate.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/rate.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- rate.cpp 2 Aug 2003 19:09:52 -0000 1.22
+++ rate.cpp 2 Aug 2003 19:17:54 -0000 1.23
@@ -89,7 +89,7 @@
}
opos_frac = 0;
- opos = 0;
+ opos = 1;
/* increment */
incr = (inrate << FRAC_BITS) / outrate;
@@ -119,7 +119,7 @@
while (obuf < oend) {
// read enough input samples so that ipos > opos
- while (ipos <= opos + 1) {
+ while (ipos <= opos) {
// Abort if we reached the end of the input buffer
if (input.eof())
@@ -136,7 +136,7 @@
// Loop as long as the outpos trails behind, and as long as there is
// still space in the output buffer.
- while (ipos > opos + 1) {
+ while (ipos > opos) {
// interpolate
tmpOut = (st_sample_t)(ilast[0] + (((icur[0] - ilast[0]) * opos_frac + (1UL << (FRAC_BITS-1))) >> FRAC_BITS));
More information about the Scummvm-git-logs
mailing list