src/audio/sdlgenaudiocvt.pl
changeset 6196 f1a312da2669
parent 6194 ba275696ab7a
child 6211 b0b81f18bf35
     1.1 --- a/src/audio/sdlgenaudiocvt.pl	Sun Jan 08 17:20:33 2012 -0500
     1.2 +++ b/src/audio/sdlgenaudiocvt.pl	Sun Jan 08 17:31:11 2012 -0500
     1.3 @@ -546,7 +546,7 @@
     1.4      if ($upsample) {
     1.5          $endcomparison = '>=';  # dst > target
     1.6          print <<EOF;
     1.7 -    $fctype *dst = (($fctype *) (cvt->buf + dstsize)) - $channels;
     1.8 +    $fctype *dst = (($fctype *) (cvt->buf + dstsize)) - $channels * $multiple;
     1.9      const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels;
    1.10      const $fctype *target = ((const $fctype *) cvt->buf);
    1.11  EOF