Commit a30a6172 authored by David McFarland's avatar David McFarland Committed by Alexandre Julliard

mmdevapi: Implement IAudioClient3_GetSharedModeEnginePeriod.

For now min/max/default are all hard-coded to ~10ms.
parent 73a6f764
......@@ -929,10 +929,17 @@ static HRESULT WINAPI client_GetSharedModeEnginePeriod(IAudioClient3 *iface,
UINT32 *max_period_frames)
{
struct audio_client *This = impl_from_IAudioClient3(iface);
FIXME("(%p)->(%p, %p, %p, %p, %p) - stub\n", This, format, default_period_frames,
unit_period_frames, min_period_frames,
max_period_frames);
return E_NOTIMPL;
FIXME("(%p)->(%p, %p, %p, %p, %p) - partial stub\n",
This, format, default_period_frames,
unit_period_frames, min_period_frames,
max_period_frames);
*default_period_frames =
*min_period_frames =
*max_period_frames =
format->nSamplesPerSec / 100; /* ~10ms */
*unit_period_frames = 1;
return S_OK;
}
static HRESULT WINAPI client_GetCurrentSharedModeEnginePeriod(IAudioClient3 *iface,
......
......@@ -346,7 +346,6 @@ static void test_audioclient(void)
hr = IAudioClient3_GetSharedModeEnginePeriod(
ac3, pwfx, &default_period, &unit_period, &min_period, &max_period);
todo_wine
ok(hr == S_OK, "GetSharedModeEnginePeriod returns %08lx\n", hr);
hr = IAudioClient3_InitializeSharedAudioStream(
......
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