r372 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Nov 20 10:35:45 EST 2005


Author: icculus
Date: 2005-11-20 10:35:45 -0500 (Sun, 20 Nov 2005)
New Revision: 372

Modified:
   trunk/code/client/snd_mem.c
Log:
Don't byteswap when resampling audio...we byteswapped it previously in the
 codecs.


Modified: trunk/code/client/snd_mem.c
===================================================================
--- trunk/code/client/snd_mem.c	2005-11-20 12:14:38 UTC (rev 371)
+++ trunk/code/client/snd_mem.c	2005-11-20 15:35:45 UTC (rev 372)
@@ -130,7 +130,7 @@
 		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;
 		}




More information about the quake3-commits mailing list