Don't byteswap when resampling audio...we byteswapped it previously in the

codecs.
This commit is contained in:
Ryan C. Gordon 2005-11-20 15:35:45 +00:00
parent 6d4f5ffbf6
commit b20b86bbbe
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ static void ResampleSfx( sfx_t *sfx, int inrate, int inwidth, byte *data, qboole
srcsample = samplefrac >> 8; srcsample = samplefrac >> 8;
samplefrac += fracstep; samplefrac += fracstep;
if( inwidth == 2 ) { if( inwidth == 2 ) {
sample = LittleShort ( ((short *)data)[srcsample] ); sample = ( ((short *)data)[srcsample] );
} else { } else {
sample = (int)( (unsigned char)(data[srcsample]) - 128) << 8; sample = (int)( (unsigned char)(data[srcsample]) - 128) << 8;
} }