search for: bytes_to_read

Displaying 3 results from an estimated 3 matches for "bytes_to_read".

2001 Jul 05
1
Streaming buffers/ov_read question
...s format (Gorillaz - Cling Eastwood) pcmData is defined like this: char pcmData[4096]; the ogg file and the directsound buffer (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...
2017 Feb 01
15
[PATCH 00/14] hyperv: vmbus related patches
This is a rebase/resend of earlier patches. I skipped the pure cosmetic patches for now. Mostly this is consolidation earlier changes, removing dead code etc. The important part is the change for allowing a vmbus channel to get callback directly in interrupt mode; this is necessary for NAPI support. Stephen Hemminger (14): vmbus: use kernel bitops for traversing interrupt mask vmbus: drop
2017 Feb 01
15
[PATCH 00/14] hyperv: vmbus related patches
This is a rebase/resend of earlier patches. I skipped the pure cosmetic patches for now. Mostly this is consolidation earlier changes, removing dead code etc. The important part is the change for allowing a vmbus channel to get callback directly in interrupt mode; this is necessary for NAPI support. Stephen Hemminger (14): vmbus: use kernel bitops for traversing interrupt mask vmbus: drop