Commit 82f486a1 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

winmm: Use buffer offset when recording.

parent 0d567ff9
...@@ -1587,7 +1587,8 @@ static void WID_PullData(WINMM_Device *device) ...@@ -1587,7 +1587,8 @@ static void WID_PullData(WINMM_Device *device)
to_copy_bytes = min(packet * device->bytes_per_frame, to_copy_bytes = min(packet * device->bytes_per_frame,
queue->dwBufferLength - queue->dwBytesRecorded); queue->dwBufferLength - queue->dwBytesRecorded);
memcpy(queue->lpData + queue->dwBytesRecorded, data, memcpy(queue->lpData + queue->dwBytesRecorded,
data + (packet_len - packet) * device->bytes_per_frame,
to_copy_bytes); to_copy_bytes);
queue->dwBytesRecorded += to_copy_bytes; queue->dwBytesRecorded += to_copy_bytes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment