Commit 73a6f764 authored by David McFarland's avatar David McFarland Committed by Alexandre Julliard

mmdevapi: Implement IAudioClient3_InitializeSharedAudioStream.

parent eef4a25d
......@@ -950,8 +950,14 @@ static HRESULT WINAPI client_InitializeSharedAudioStream(IAudioClient3 *iface, D
const GUID *session_guid)
{
struct audio_client *This = impl_from_IAudioClient3(iface);
FIXME("(%p)->(0x%lx, %u, %p, %s) - stub\n", This, flags, period_frames, format, debugstr_guid(session_guid));
return E_NOTIMPL;
REFERENCE_TIME duration;
FIXME("(%p)->(0x%lx, %u, %p, %s) - partial stub\n", This, flags, period_frames, format, debugstr_guid(session_guid));
if (!format)
return E_POINTER;
duration = period_frames * (REFERENCE_TIME)10000000 / format->nSamplesPerSec;
return client_Initialize(iface, AUDCLNT_SHAREMODE_SHARED, flags, duration, 0, format, session_guid);
}
const IAudioClient3Vtbl AudioClient3_Vtbl =
......
......@@ -351,7 +351,6 @@ static void test_audioclient(void)
hr = IAudioClient3_InitializeSharedAudioStream(
ac3, AUDCLNT_SHAREMODE_SHARED, default_period, pwfx, NULL);
todo_wine
ok(hr == S_OK, "InitializeSharedAudioStream returns %08lx\n", hr);
IAudioClient3_Release(ac3);
......
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