Displaying 1 result from an estimated 1 matches for "numstreams".
Did you mean:
mstreams
2004 Feb 18
1
Precache an entire OGG?
...ust freezing? I've let it run for about three minutes, thinking it was doing some heavy decoding, but I was wrong. Once this is fixed I'll release this player. Thanks for the help!
pSOUNDDATA OGGDATA::DecodeOGGLow()
{
int StreamID;
unsigned int Size, Read;
unsigned int Location, numStreams;
pSOUNDDATA pData;
if(pFile == NULL)
return NULL;
if((pData = (pSOUNDDATA)malloc(sizeof(sSOUNDDATA))) == NULL)
return NULL;
pData->Length = ov_pcm_total(&sOVFile, -1);
if((pData->Buffer = (char*)malloc(pData->Length)) == NULL)
{
free(pData);
return NULL...