Displaying 1 result from an estimated 1 matches for "povinfo".
2004 Feb 18
1
Precache an entire OGG?
...ATA 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 = 0x1103;
numStreams = ov_streams(&sOVFile);
StreamID = 0;
Location = 0;
while(StreamID < numStreams)
{
Size...