From 9d7bb06743ebb76cc84a2556e884c0d9da9c24ff Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 14 Nov 2005 18:26:25 +0000 Subject: [PATCH] * Replace a redundant function in the wav decoder --- code/client/snd_codec_wav.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/code/client/snd_codec_wav.c b/code/client/snd_codec_wav.c index bc9c00c3..17553f36 100644 --- a/code/client/snd_codec_wav.c +++ b/code/client/snd_codec_wav.c @@ -77,25 +77,6 @@ static int S_ReadChunkInfo(fileHandle_t f, char *name) return len; } -/* -================= -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 @@ -121,7 +102,7 @@ static int S_FindWavChunk( fileHandle_t f, char *chunk ) { return len; // Not the right chunk - skip it - S_SkipChunk(f, len); + FS_Seek( f, len, FS_SEEK_CUR ); } }