https://bugs.winehq.org/show_bug.cgi?id=53264
Bug ID: 53264 Summary: mmdevapi:capture - test_audioclient() fails systematically on Windows 10 1909+ Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: mmdevapi Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
mmdevapi:capture - test_audioclient() fails systematically on Windows 10 1909+:
capture.c:534: Test failed: SetEventHandle returns 80070002 capture.c:135: Test failed: Start on a stopped stream returns 88890014 capture.c:137: Test failed: Waiting on event handle failed! capture.c:155: Wait'ed position -1 pad 0 flags abadcafe, amount of frames locked: 0 capture.c:187: Test failed: GetNextPacketSize 0 vs. GCP 0 capture.c:190: Test failed: Valid IAudioCaptureClient_GetBuffer returns 08890001 capture.c:219: Sleep.1 position -1 pad 0 flags abadcafe, amount of frames locked: 0 capture.c:259: Test failed: GetNextPacketSize 0 vs. GetDevicePeriod 448 capture.c:264: GetBufferSize 21996 period size 448 capture.c:272: Test failed: Valid IAudioCaptureClient_GetBuffer returns 08890001 capture.c:274: Overrun position -1 pad 0 flags abadcafe, amount of frames locked: 0 capture.c:299: Test failed: Valid IAudioCaptureClient_GetBuffer returns 08890001 capture.c:301: Cont'ed position -1 pad 0 flags abadcafe, amount of frames locked: 0 capture.c:314: Test failed: Stop on a started stream returns 00000001 capture.c:317: Test failed: Start on a stopped stream returns 88890014 capture.c:320: Test failed: Valid IAudioCaptureClient_GetBuffer returns 08890001 capture.c:325: Restart position 0 pad 0 flags abadcafe, amount of frames locked: 0 capture.c:327: Test failed: restarted GCP 0 capture.c:339: Test failed: Stop on a started stream returns 00000001 capture.c:354: Reset position -1 pad 0 flags abadcafe, amount of frames locked: 0 capture.c:361: Test failed: Start on a stopped stream returns 88890014 capture.c:369: Test failed: Valid IAudioCaptureClient_GetBuffer returns 08890001
https://test.winehq.org/data/patterns.html#mmdevapi:capture
80070002 == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) 88890014 == AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR
It looks like the first failure is the cause for all the others.