Mercurial > audlegacy
changeset 151:0a2963adefab trunk
[svn] Remove REAL_TO_SHORT from generic decoder.
author | nenolod |
---|---|
date | Sat, 12 Nov 2005 10:51:09 -0800 |
parents | 1997ecd9dcb1 |
children | 274c85015c90 |
files | Plugins/Input/mpg123/decode.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/mpg123/decode.c Thu Nov 10 18:25:15 2005 -0800 +++ b/Plugins/Input/mpg123/decode.c Sat Nov 12 10:51:09 2005 -0800 @@ -15,7 +15,7 @@ #define WRITE_SAMPLE(samples,sum,clip) \ if( (sum) > REAL_PLUS_32767) { *(samples) = 0x7fff; (clip)++; } \ else if( (sum) < REAL_MINUS_32768) { *(samples) = -0x8000; (clip)++; } \ - else { *(samples) = REAL_TO_SHORT(sum); } + else { *(samples) = sum; } int mpg123_synth_1to1_8bit(real *bandPtr,int channel,unsigned char *samples,int *pnt) {