Mercurial > audlegacy
comparison Plugins/Input/mpg123/psycho.c @ 1095:dec5caa8768b trunk
[svn] - nevermind
author | nenolod |
---|---|
date | Sun, 21 May 2006 12:16:21 -0700 |
parents | 0c43b993fc95 |
children | 73631b1e8611 |
comparison
equal
deleted
inserted
replaced
1094:0c43b993fc95 | 1095:dec5caa8768b |
---|---|
437 lprev1 = left1; | 437 lprev1 = left1; |
438 rprev1 = right1; | 438 rprev1 = right1; |
439 lprev2 = left2; | 439 lprev2 = left2; |
440 rprev2 = right2; | 440 rprev2 = right2; |
441 | 441 |
442 #if 0 | |
443 if (left < -32768) left = -32768; | 442 if (left < -32768) left = -32768; |
444 else if (left > 32767) left = 32767; | 443 else if (left > 32767) left = 32767; |
445 if (right < -32768) right = -32768; | 444 if (right < -32768) right = -32768; |
446 else if (right > 32767) right = 32767; | 445 else if (right > 32767) right = 32767; |
447 #endif | |
448 /* if we're going to clip, just throw back the original data */ | |
449 if (left < -32768 || left > 32767 || right < -32768 || right > 32767) | |
450 { | |
451 dataptr += 2; | |
452 continue; | |
453 } | |
454 | 446 |
455 dataptr[0] = left; | 447 dataptr[0] = left; |
456 dataptr[1] = right; | 448 dataptr[1] = right; |
457 dataptr += 2; | 449 dataptr += 2; |
458 } | 450 } |