summaryrefslogtreecommitdiffstats
path: root/Alc/backends/mmdevapi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-02-09 10:52:12 -0800
committerChris Robinson <[email protected]>2014-02-09 10:52:12 -0800
commit09d1319e82cfa73975041f9a5343b8b8c0e8029a (patch)
treec399f4c2f7a966a3729e65f8f3f394cf18d45a58 /Alc/backends/mmdevapi.c
parentea0aea65082313da6e1ab9981247bba3d2c5c4a8 (diff)
Add some extra traces to the mmdevapi backend
Trying to track down the cause of some reported errors.
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r--Alc/backends/mmdevapi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index fa7c54f9..32c4d7ef 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -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))