search for: dsblock_fromwritecursor

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

2001 Jul 05
1
Streaming buffers/ov_read question
...se if (retVal < 0) { // Hole in data // do nothing right now } else { bytes_to_read = bytes_to_read - retVal; } } bufferReadCursor = 0; } if (eof) break; lpdsBuffer->Lock(0, 4096, (void **)&ptr1, &len1, (void **)&ptr2, &len2, DSBLOCK_FROMWRITECURSOR); if (len1 > (4096 - bufferReadCursor)) len1_copy = 4096 - bufferReadCursor; else len1_copy = len1; memcpy(ptr1, pcmData + bufferReadCursor, len1_copy); bufferReadCursor += len1_copy; if (ptr2 != NULL) { if (len2 > (4096 - bufferReadCursor)) len2_copy = 4096 - buffer...