Displaying 1 result from an estimated 1 matches for "sovfil".
Did you mean:
sovfile
2004 Feb 18
1
Precache an entire OGG?
...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;
}
pOVInfo = ov_info(&sOVFile, -1);
pData->Frequency = pOVInfo->rate;
if(pOVInfo->channels == 1)
pData->Channels = 0x1101;
else
pData->Channels =...