Skip to content

Commit

Permalink
wdmks: Reset packet->Header.OptionsFlags = 0 for each packet. Fixes i…
Browse files Browse the repository at this point in the history
…ssue with Focusrite Scarlett 2i4 (1st Gen). Fixes #310
  • Loading branch information
RossBencina committed Dec 27, 2020
1 parent fb9b646 commit 6a676d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hostapi/wdmks/pa_win_wdmks.c
Expand Up @@ -6548,6 +6548,7 @@ static PaError PaPinCaptureSubmitHandler_WaveCyclic(PaProcessThreadInfo* pInfo,
assert(packet != 0);
PA_HP_TRACE((pInfo->stream->hLog, "Capture submit: %u", eventIndex));
packet->Header.DataUsed = 0; /* Reset for reuse */
packet->Header.OptionsFlags = 0; /* Reset for reuse. Required for e.g. Focusrite Scarlett 2i4 (1st Gen) see #310 */
ResetEvent(packet->Signal.hEvent);
result = PinRead(pInfo->stream->capture.pPin->handle, packet);
++pInfo->pending;
Expand Down

0 comments on commit 6a676d3

Please sign in to comment.