diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-14 18:26:25 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-11-14 18:26:25 +0000 |
commit | c01decae1b250e38ce8087bb0adc02f79695f452 (patch) | |
tree | fe1bc1e995971de6513a267d04eba2b117b06cf3 /code/client | |
parent | 5cecaff9b37afdbef85427cea136c6101d88f1c0 (diff) | |
download | ioquake3-aero-c01decae1b250e38ce8087bb0adc02f79695f452.tar.gz ioquake3-aero-c01decae1b250e38ce8087bb0adc02f79695f452.zip |
* Replace a redundant function in the wav decoder
git-svn-id: svn://svn.icculus.org/quake3/trunk@356 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client')
-rw-r--r-- | code/client/snd_codec_wav.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/code/client/snd_codec_wav.c b/code/client/snd_codec_wav.c index bc9c00c..17553f3 100644 --- a/code/client/snd_codec_wav.c +++ b/code/client/snd_codec_wav.c @@ -79,25 +79,6 @@ static int S_ReadChunkInfo(fileHandle_t f, char *name) /* ================= -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 @@ 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 ); } } |