From 6a676d3ecb9a493750b18387d56e586305f5749e Mon Sep 17 00:00:00 2001 From: Ross Bencina Date: Tue, 22 Dec 2020 18:57:23 +1100 Subject: [PATCH] wdmks: Reset packet->Header.OptionsFlags = 0 for each packet. Fixes issue with Focusrite Scarlett 2i4 (1st Gen). Fixes #310 --- src/hostapi/wdmks/pa_win_wdmks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hostapi/wdmks/pa_win_wdmks.c b/src/hostapi/wdmks/pa_win_wdmks.c index f30ee95ae..21f944dba 100644 --- a/src/hostapi/wdmks/pa_win_wdmks.c +++ b/src/hostapi/wdmks/pa_win_wdmks.c @@ -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;