search for: ov_stream

Displaying 2 results from an estimated 2 matches for "ov_stream".

Did you mean: ov_streams
2004 Feb 18
1
Precache an entire OGG?
...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 = ov_pcm_total(&sOVFile, StreamID); while(Size > 0); { Read = ov_read(&sOVFile, (pData->Buffer + Location), Size, 0, 2, 1, &StreamID); Size -= Read; Locatio...
2003 Jul 29
2
Uncompressed size in bytes
Hi! I would like to decompress an ogg vorbis file from the memory to the memory. I wrote my own callbacks for it (Why isn't there callback functions for it? Just for void* data, and a size_t size). Now I can read the ogg file from the memory but I don't know the total size of the uncompressed data (I would like to decompress the data at once). How can I get the bitstream decompressed