From b0c6a473e2a34000db73c75bc0ff43bba45fddb2 Mon Sep 17 00:00:00 2001 From: icculus Date: Sun, 20 Nov 2005 15:35:45 +0000 Subject: Don't byteswap when resampling audio...we byteswapped it previously in the codecs. git-svn-id: svn://svn.icculus.org/quake3/trunk@372 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/snd_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/client') diff --git a/code/client/snd_mem.c b/code/client/snd_mem.c index 77b370d..8c3f98e 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; } -- cgit v1.2.3