mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-27 06:13:01 +00:00
* Replace a redundant function in the wav decoder
This commit is contained in:
parent
e8a953fea6
commit
9d7bb06743
1 changed files with 1 additions and 20 deletions
|
@ -77,25 +77,6 @@ static int S_ReadChunkInfo(fileHandle_t f, char *name)
|
||||||
return len;
|
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
|
S_FindWavChunk
|
||||||
|
@ -121,7 +102,7 @@ static int S_FindWavChunk( fileHandle_t f, char *chunk ) {
|
||||||
return len;
|
return len;
|
||||||
|
|
||||||
// Not the right chunk - skip it
|
// Not the right chunk - skip it
|
||||||
S_SkipChunk(f, len);
|
FS_Seek( f, len, FS_SEEK_CUR );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue