Add some extra traces to the mmdevapi backend

Trying to track down the cause of some reported errors.
This commit is contained in:
Chris Robinson
2014-02-09 10:52:12 -08:00
parent ea0aea6508
commit 09d1319e82
+8
View File
@@ -600,6 +600,7 @@ static DWORD CALLBACK MMDevApiMsgProc(void *ptr)
CoUninitialize();
TRACE("Message thread initialization complete\n");
req->result = S_OK;
SetEvent(req->FinishedEvt);
@@ -834,7 +835,10 @@ static ALCenum MMDevApiOpenPlayback(ALCdevice *device, const ALCchar *deviceName
data->NotifyEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
data->MsgEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
if(data->NotifyEvent == NULL || data->MsgEvent == NULL)
{
ERR("Failed to create message events: %lu\n", GetLastError());
hr = E_FAIL;
}
if(SUCCEEDED(hr))
{
@@ -859,6 +863,8 @@ static ALCenum MMDevApiOpenPlayback(ALCdevice *device, const ALCchar *deviceName
break;
}
}
if(FAILED(hr))
WARN("Failed to find device name matching \"%s\"\n", deviceName);
}
}
@@ -869,6 +875,8 @@ static ALCenum MMDevApiOpenPlayback(ALCdevice *device, const ALCchar *deviceName
hr = E_FAIL;
if(PostThreadMessage(ThreadID, WM_USER_OpenDevice, (WPARAM)&req, (LPARAM)device))
hr = WaitForResponse(&req);
else
ERR("Failed to post thread message: %lu\n", GetLastError());
}
if(FAILED(hr))