Displaying 1 result from an estimated 1 matches for "flgpacketsconsum".
Did you mean:
flgpacketsconsumed
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...eam init
// Need to set the serial number later
os = ogg_stream_create(-1);
// CAUTION: Just about anything you do wrong pops a bus error.
// You need to be fairly aggressive about checking return codes
// and initializing properly.
int flgBailError = 0;
int pageCount = -1;
int flgPacketsConsumed = 0;
int packetCount = -1;
int flgEOSPage = 0;
while(!flgBailError) {
dprintf("Page: %d\n", pageCount);
if (pageCount != -1) {
if (pageCount == 0) {
// FIXME: Silly pageCount used to indicate serial number change
// because ogg_stream_pagein does braindead relea...