aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-20 15:35:45 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-11-20 15:35:45 +0000
commitb0c6a473e2a34000db73c75bc0ff43bba45fddb2 (patch)
tree6e4812be667d8d12b5680e98ff4608e5937ab572 /code
parent5839022ddf394ed438486bc1d1ce6f3184b6b364 (diff)
downloadioquake3-aero-b0c6a473e2a34000db73c75bc0ff43bba45fddb2.tar.gz
ioquake3-aero-b0c6a473e2a34000db73c75bc0ff43bba45fddb2.zip
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
Diffstat (limited to 'code')
-rw-r--r--code/client/snd_mem.c2
1 files changed, 1 insertions, 1 deletions
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;
}