r356 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Nov 14 13:26:25 EST 2005


Author: tma
Date: 2005-11-14 13:26:25 -0500 (Mon, 14 Nov 2005)
New Revision: 356

Modified:
   trunk/code/client/snd_codec_wav.c
Log:
* Replace a redundant function in the wav decoder


Modified: trunk/code/client/snd_codec_wav.c
===================================================================
--- trunk/code/client/snd_codec_wav.c	2005-11-13 23:05:00 UTC (rev 355)
+++ trunk/code/client/snd_codec_wav.c	2005-11-14 18:26:25 UTC (rev 356)
@@ -79,25 +79,6 @@
 
 /*
 =================
-S_SkipChunk
-=================
-*/
-static void S_SkipChunk(fileHandle_t f, int length)
-{
-	byte buffer[32*1024];
-
-	while(length > 0)
-	{
-		int toread = length;
-		if(toread > sizeof(buffer))
-			toread = sizeof(buffer);
-		FS_Read(buffer, toread, f);
-		length -= toread;
-	}
-}
-
-/*
-=================
 S_FindWavChunk
 
 Returns the length of the data in the chunk, or 0 if not found
@@ -121,7 +102,7 @@
 			return len;
 
 		// Not the right chunk - skip it
-		S_SkipChunk(f, len);
+		FS_Seek( f, len, FS_SEEK_CUR );
 	}
 }
 




More information about the quake3-commits mailing list