mmdevapi: Implement IAudioClient3_InitializeSharedAudioStream.
This commit is contained in:
parent
eef4a25d0c
commit
73a6f764d0
2 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue