Re: [PATCH v5 0/3] MR5585: mmdevapi: Implement AudioClockAdjustment_SetSampleRate.
Etaash Mathamsetty (@etaash.mathamsetty) commented about dlls/mmdevapi/tests/render.c:
+ NULL, (void**)&ac); + ok(hr == S_OK, "Activation failed with %08lx\n", hr); + if(hr != S_OK) + return; + + hr = IAudioClient_GetMixFormat(ac, &pwfx); + ok(hr == S_OK, "GetMixFormat failed: %08lx\n", hr); + + hr = IAudioClient_Initialize(ac, AUDCLNT_SHAREMODE_SHARED, 0, 5000000, + 0, pwfx, NULL); + ok(hr == S_OK, "Initialize failed: %08lx\n", hr); + + CoTaskMemFree(pwfx); + + /* contrary to what MSDN says this interface should be obtained via QueryInterface() */ + hr = IAudioClient_GetService(ac, &IID_IAudioClockAdjustment, (void**)&aca); cracked the mystery, im pretty sure AUDCLNT_STREAMFLAGS_RATEADJUST is needed for GetService to work :)
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5585#note_75515
participants (1)
-
Etaash Mathamsetty (@etaash.mathamsetty)