From b20b86bbbefe0aac055f2c0dd6058aa00ab17afc Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 20 Nov 2005 15:35:45 +0000 Subject: [PATCH] Don't byteswap when resampling audio...we byteswapped it previously in the codecs. --- code/client/snd_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/snd_mem.c b/code/client/snd_mem.c index 77b370dd..8c3f98e7 100644 --- a/code/client/snd_mem.c +++ b/code/client/snd_mem.c @@ -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; }