*** c:/temp/sdlgenaudiocvt.pl Wed Dec 15 15:36:31 2010 --- c:/temp/sdlgenaudiocvt.pl2 Wed Dec 15 15:36:57 2010 *************** *** 405,415 **** # Upsampling (growing the buffer) needs to work backwards, since we # overwrite the buffer as we go. if ($upsample) { ! $endcomparison = '>'; # dst > target print <buf + dstsize)) - $channels; const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels; ! const $fctype *target = ((const $fctype *) cvt->buf) - $channels; EOF } else { $endcomparison = '<'; # dst < target --- 405,415 ---- # Upsampling (growing the buffer) needs to work backwards, since we # overwrite the buffer as we go. if ($upsample) { ! $endcomparison = '>='; # dst > target print <buf + dstsize)) - $channels; const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels; ! const $fctype *target = ((const $fctype *) cvt->buf); EOF } else { $endcomparison = '<'; # dst < target *************** *** 546,556 **** # Upsampling (growing the buffer) needs to work backwards, since we # overwrite the buffer as we go. if ($upsample) { ! $endcomparison = '>'; # dst > target print <buf + dstsize)) - $channels; const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels; ! const $fctype *target = ((const $fctype *) cvt->buf) - $channels; EOF } else { $endcomparison = '<'; # dst < target --- 546,556 ---- # Upsampling (growing the buffer) needs to work backwards, since we # overwrite the buffer as we go. if ($upsample) { ! $endcomparison = '>='; # dst > target print <buf + dstsize)) - $channels; const $fctype *src = (($fctype *) (cvt->buf + cvt->len_cvt)) - $channels; ! const $fctype *target = ((const $fctype *) cvt->buf); EOF } else { $endcomparison = '<'; # dst < target