aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-02-08 20:56:45 -0800
committerChris Robinson <[email protected]>2008-02-08 20:56:45 -0800
commite8acfb069c6075aed6765aaa4d0a1f0e7171f3f5 (patch)
treebb1c3b3a752339813d8d9f0ff92df9042fec5cc5 /Alc
parent4c38ed272d2b9626cf65abb3dcfb6ad393dc0ea0 (diff)
Remove explicit dependancy on ole32 and unused dxguid
Diffstat (limited to 'Alc')
-rw-r--r--Alc/dsound.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index dbe72c77..5313b039 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -161,13 +161,8 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam
return ALC_FALSE;
}
- //Init COM
- CoInitialize(NULL);
-
//DirectSound Init code
- hr = CoCreateInstance(&CLSID_DirectSound, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectSound, (LPVOID*)&pData->lpDS);
- if(SUCCEEDED(hr))
- hr = IDirectSound_Initialize(pData->lpDS, guid);
+ hr = DirectSoundCreate(guid, &pData->lpDS, NULL);
if(SUCCEEDED(hr))
hr = IDirectSound_SetCooperativeLevel(pData->lpDS, GetForegroundWindow(), DSSCL_PRIORITY);
@@ -307,9 +302,6 @@ static void DSoundClosePlayback(ALCdevice *device)
IDirectSoundBuffer_Release(pData->DSpbuffer);
IDirectSound_Release(pData->lpDS);
- //Deinit COM
- CoUninitialize();
-
free(pData);
device->ExtraData = NULL;
}