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

View file

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