search for: packetstofetch

Displaying 1 result from an estimated 1 matches for "packetstofetch".

2015 Nov 05
3
Opusfile seeking bug
...g_stream_state m_streamState; int64_t m_lastGranulePos = 0; int64_t failingSeekPoint = -1; int32_t serialno = -1; int fpp, spf; int decoding = 1; ogg_page page; char* buffer = NULL; long bytesRead = 0; uint8_t headerFLags = 0; int pageContinuesPacket = 0; int firstPacketInPage = 1; int packetsToFetch = 1; int packetOutRet; FILE* fp = fopen(filename, "rb"); ogg_sync_init(&m_syncState); while(decoding) { while(ogg_sync_pageout(&m_syncState, &page) != 1) { buffer = ogg_sync_buffer(&m_syncState, BufferSize); bytesRead = fread(buffer, sizeof(char), BufferSi...