comparison src/audio/sdlgenaudiocvt.pl @ 3032:77c3e67f0740

Fixed Visual C++ build
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jan 2009 08:46:28 +0000
parents 70d876a0b90e
children bfa8d34ce03a
comparison
equal deleted inserted replaced
3031:86918831452f 3032:77c3e67f0740
214 { 214 {
215 int i; 215 int i;
216 const $srctype *src; 216 const $srctype *src;
217 $tctype *dst; 217 $tctype *dst;
218 218
219 #ifdef DEBUG_CONVERT 219 #if DEBUG_CONVERT
220 fprintf(stderr, "Converting AUDIO_${from} to AUDIO_${to}.\\n"); 220 fprintf(stderr, "Converting AUDIO_${from} to AUDIO_${to}.\\n");
221 #endif 221 #endif
222 222
223 EOF 223 EOF
224 224
389 # !!! FIXME: DEBUG_CONVERT should report frequencies. 389 # !!! FIXME: DEBUG_CONVERT should report frequencies.
390 print <<EOF; 390 print <<EOF;
391 static void SDLCALL 391 static void SDLCALL
392 ${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format) 392 ${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format)
393 { 393 {
394 #ifdef DEBUG_CONVERT 394 #if DEBUG_CONVERT
395 fprintf(stderr, "$resample arbitrary (x%f) AUDIO_${from}, ${channels} channels.\\n", cvt->rate_incr); 395 fprintf(stderr, "$resample arbitrary (x%f) AUDIO_${from}, ${channels} channels.\\n", cvt->rate_incr);
396 #endif 396 #endif
397 397
398 const int srcsize = cvt->len_cvt - $fudge; 398 const int srcsize = cvt->len_cvt - $fudge;
399 const int dstsize = (int) (((double)cvt->len_cvt) * cvt->rate_incr); 399 const int dstsize = (int) (((double)cvt->len_cvt) * cvt->rate_incr);
527 # !!! FIXME: DEBUG_CONVERT should report frequencies. 527 # !!! FIXME: DEBUG_CONVERT should report frequencies.
528 print <<EOF; 528 print <<EOF;
529 static void SDLCALL 529 static void SDLCALL
530 ${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format) 530 ${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format)
531 { 531 {
532 #ifdef DEBUG_CONVERT 532 #if DEBUG_CONVERT
533 fprintf(stderr, "$resample (x${multiple}) AUDIO_${from}, ${channels} channels.\\n"); 533 fprintf(stderr, "$resample (x${multiple}) AUDIO_${from}, ${channels} channels.\\n");
534 #endif 534 #endif
535 535
536 const int srcsize = cvt->len_cvt; 536 const int srcsize = cvt->len_cvt;
537 const int dstsize = cvt->len_cvt $lencvtop $multiple; 537 const int dstsize = cvt->len_cvt $lencvtop $multiple;