search for: hdlg

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

Did you mean: hdlc
2001 Jul 05
1
Streaming buffers/ov_read question
...r (lpdsBuffer and vorbisFile) have already been set up properly. // code start void PlaybackThread(void *param) { UCHAR *ptr1, *ptr2; DWORD len1, len2; long retVal; int bytes_to_read = 4096; int writeCursor = 0; int bufferReadCursor = 0; bool begPlay = 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...