aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/mmdevapi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-19 23:42:02 -0700
committerChris Robinson <[email protected]>2012-04-19 23:42:02 -0700
commit511b4790d0079bc4984f99e6f9bce76c481e1c32 (patch)
treeb39f025245e6849c6a9ef913d1499468164b2459 /Alc/backends/mmdevapi.c
parentd6491e21f9621b0f30832631f35d0a769a7b0e83 (diff)
Remove hungarian notation from dsound and mmdevapi
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r--Alc/backends/mmdevapi.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index f85c9956..1f4dbbc9 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -60,7 +60,7 @@ typedef struct {
IMMDevice *mmdev;
IAudioClient *client;
IAudioRenderClient *render;
- HANDLE hNotifyEvent;
+ HANDLE NotifyEvent;
HANDLE MsgEvent;
@@ -255,7 +255,7 @@ static ALuint MMDevApiProc(ALvoid *ptr)
if(len < update_size)
{
DWORD res;
- res = WaitForSingleObjectEx(data->hNotifyEvent, 2000, FALSE);
+ res = WaitForSingleObjectEx(data->NotifyEvent, 2000, FALSE);
if(res != WAIT_OBJECT_0)
ERR("WaitForSingleObjectEx error: 0x%lx\n", res);
continue;
@@ -651,8 +651,8 @@ static DWORD CALLBACK MMDevApiMsgProc(void *ptr)
device = (ALCdevice*)msg.lParam;
data = device->ExtraData;
- ResetEvent(data->hNotifyEvent);
- hr = IAudioClient_SetEventHandle(data->client, data->hNotifyEvent);
+ ResetEvent(data->NotifyEvent);
+ hr = IAudioClient_SetEventHandle(data->client, data->NotifyEvent);
if(FAILED(hr))
ERR("Failed to set event handle: 0x%08lx\n", hr);
else
@@ -820,9 +820,9 @@ static ALCenum MMDevApiOpenPlayback(ALCdevice *device, const ALCchar *deviceName
device->ExtraData = data;
hr = S_OK;
- data->hNotifyEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
+ data->NotifyEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
data->MsgEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
- if(data->hNotifyEvent == NULL || data->MsgEvent == NULL)
+ if(data->NotifyEvent == NULL || data->MsgEvent == NULL)
hr = E_FAIL;
if(SUCCEEDED(hr))
@@ -862,9 +862,9 @@ static ALCenum MMDevApiOpenPlayback(ALCdevice *device, const ALCchar *deviceName
if(FAILED(hr))
{
- if(data->hNotifyEvent != NULL)
- CloseHandle(data->hNotifyEvent);
- data->hNotifyEvent = NULL;
+ if(data->NotifyEvent != NULL)
+ CloseHandle(data->NotifyEvent);
+ data->NotifyEvent = NULL;
if(data->MsgEvent != NULL)
CloseHandle(data->MsgEvent);
data->MsgEvent = NULL;
@@ -890,8 +890,8 @@ static void MMDevApiClosePlayback(ALCdevice *device)
CloseHandle(data->MsgEvent);
data->MsgEvent = NULL;
- CloseHandle(data->hNotifyEvent);
- data->hNotifyEvent = NULL;
+ CloseHandle(data->NotifyEvent);
+ data->NotifyEvent = NULL;
free(data->devid);
data->devid = NULL;