Displaying 1 result from an estimated 1 matches for "curlength".
Did you mean:
barlength
2004 Feb 19
1
read codebook function
...s not there anymore and there are only 8 BCV in my file.
function fReadBits1 is the same as the ogg's read bit function.
orry for the long function and to bother
Adriano
<p>
-------------- next part --------------
int cOgg::readCodeBook(tOggCodebook *cb)
{
dword i, curEntry, num;
byte curLength;
// read sync pattern
this->fRead((byte*) cb->sync, 3);
cb->sync[3] = '\0';
// print info
printf("Codebook sync pattern: %s\n", cb->sync);
// check if pattern is valid
if( strncmp(cb->sync, "BCV", 3) )
return 0;
// read codebook dimensions and entri...