search for: currentsect

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

Did you mean: currentset
2001 Jul 05
1
Streaming buffers/ov_read question
...egPlay = true; int len1_copy, len2_copy; HWND hDlg = (HWND)param; while (!eof) { if (bufferReadCursor > 4096) { // fill more data into the buffer; bytes_to_read = 4096; while (bytes_to_read > 0) { retVal = ov_read(&vorbisFile, pcmData, bytes_to_read, 0, 2, 1, &currentSection); if (retVal == 0) { eof = true; break; } else if (retVal < 0) { // Hole in data // do nothing right now } else { bytes_to_read = bytes_to_read - retVal; } } bufferReadCursor = 0; } if (eof) break; lpdsBuffer->Lo...