From 5c143f8faa791cf563b2e7d11139c0f41bcb6cbc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 5 Jun 2023 19:42:34 -0700 Subject: Avoid explicit definitions of some IIDs --- alc/backends/wasapi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alc') diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 653c9098..b07cb62a 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -423,7 +423,7 @@ struct DeviceHelper final : private IMMNotificationClient { #if !defined(ALSOFT_UWP) HRESULT hr{CoCreateInstance(CLSID_MMDeviceEnumerator, nullptr, CLSCTX_INPROC_SERVER, - IID_IMMDeviceEnumerator, al::out_ptr(mEnumerator))}; + __uuidof(IMMDeviceEnumerator), al::out_ptr(mEnumerator))}; if(SUCCEEDED(hr)) mEnumerator->RegisterEndpointNotificationCallback(this); else @@ -1621,7 +1621,7 @@ HRESULT WasapiPlayback::startProxy() return hr; } - hr = mClient->GetService(IID_IAudioRenderClient, al::out_ptr(mRender)); + hr = mClient->GetService(__uuidof(IAudioRenderClient), al::out_ptr(mRender)); if(SUCCEEDED(hr)) { try { @@ -2201,7 +2201,7 @@ HRESULT WasapiCapture::startProxy() return hr; } - hr = mClient->GetService(IID_IAudioCaptureClient, al::out_ptr(mCapture)); + hr = mClient->GetService(__uuidof(IAudioCaptureClient), al::out_ptr(mCapture)); if(SUCCEEDED(hr)) { try { -- cgit v1.2.3