src/audio/sdlgenaudiocvt.pl
changeset 6211 b0b81f18bf35
parent 6196 f1a312da2669
child 6885 700f1b25f77f
     1.1 --- a/src/audio/sdlgenaudiocvt.pl	Thu Jan 12 21:42:35 2012 -0500
     1.2 +++ b/src/audio/sdlgenaudiocvt.pl	Thu Jan 12 22:54:09 2012 -0500
     1.3 @@ -611,28 +611,28 @@
     1.4              for (my $i = $channels-1; $i >= 0; $i--) {
     1.5                  my $dsti = $i + ($channels * 3);
     1.6                  print <<EOF;
     1.7 -        dst[$dsti] = ($fctype) sample${i};
     1.8 +        dst[$dsti] = ($fctype) ((sample${i} + ($mult3 * last_sample${i})) $interp2);
     1.9  EOF
    1.10              }
    1.11  
    1.12              for (my $i = $channels-1; $i >= 0; $i--) {
    1.13                  my $dsti = $i + ($channels * 2);
    1.14                  print <<EOF;
    1.15 -        dst[$dsti] = ($fctype) ((($mult3 * sample${i}) + last_sample${i}) $interp2);
    1.16 +        dst[$dsti] = ($fctype) ((sample${i} + last_sample${i}) $interp);
    1.17  EOF
    1.18              }
    1.19  
    1.20              for (my $i = $channels-1; $i >= 0; $i--) {
    1.21                  my $dsti = $i + ($channels * 1);
    1.22                  print <<EOF;
    1.23 -        dst[$dsti] = ($fctype) ((sample${i} + last_sample${i}) $interp);
    1.24 +        dst[$dsti] = ($fctype) ((($mult3 * sample${i}) + last_sample${i}) $interp2);
    1.25  EOF
    1.26              }
    1.27  
    1.28              for (my $i = $channels-1; $i >= 0; $i--) {
    1.29                  my $dsti = $i + ($channels * 0);
    1.30                  print <<EOF;
    1.31 -        dst[$dsti] = ($fctype) ((sample${i} + ($mult3 * last_sample${i})) $interp2);
    1.32 +        dst[$dsti] = ($fctype) sample${i};
    1.33  EOF
    1.34              }
    1.35          } else {