Mercurial > sdl-ios-xcode
comparison src/audio/sdlgenaudiocvt.pl @ 2955:2692999d5271
Avoid unnecessary assignment in generated audio type converters.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 02 Jan 2009 07:34:01 +0000 |
parents | 99210400e8b9 |
children | 1210d5a28e16 |
comparison
equal
deleted
inserted
replaced
2954:2c01dc6218cc | 2955:2692999d5271 |
---|---|
250 my $mult = $tsize / $fsize; | 250 my $mult = $tsize / $fsize; |
251 print(" cvt->len_cvt *= $mult;\n"); | 251 print(" cvt->len_cvt *= $mult;\n"); |
252 } | 252 } |
253 | 253 |
254 print <<EOF; | 254 print <<EOF; |
255 format = AUDIO_$to; | |
256 if (cvt->filters[++cvt->filter_index]) { | 255 if (cvt->filters[++cvt->filter_index]) { |
257 cvt->filters[cvt->filter_index] (cvt, format); | 256 cvt->filters[cvt->filter_index] (cvt, AUDIO_$to); |
258 } | 257 } |
259 } | 258 } |
260 | 259 |
261 EOF | 260 EOF |
262 | 261 |