From b444dea63b007b52a5eb5c2861c1e7091f31fe9d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 28 Aug 2009 06:33:59 -0700 Subject: [PATCH] Fix compilation for Windows --- Alc/dsound.c | 7 ++++--- Alc/winmm.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Alc/dsound.c b/Alc/dsound.c index e6df32da..dcad35ef 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -476,8 +476,6 @@ static BOOL CALLBACK DSoundEnumDevices(LPGUID guid, LPCSTR desc, LPCSTR drvname, void alcDSoundInit(BackendFuncs *FuncList) { - HRESULT hr; - *FuncList = DSoundFuncs; #ifdef _WIN32 @@ -530,13 +528,16 @@ void alcDSoundDeinit(void) void alcDSoundProbe(int type) { - if(!dsound_handle) + if(!ds_handle) return; if(type == DEVICE_PROBE) AppendDeviceList(dsDevice); else if(type == ALL_DEVICE_PROBE) { + HRESULT hr; + ALuint i; + for(i = 0;i < NumDevices;++i) free(DeviceList[i].name); free(DeviceList); diff --git a/Alc/winmm.c b/Alc/winmm.c index 67865f26..e2a4a7b9 100644 --- a/Alc/winmm.c +++ b/Alc/winmm.c @@ -440,7 +440,7 @@ void alcWinMMDeinit() NumCaptureDevices = 0; } -void alcWinMMProbe(ALCboolean capture) +void alcWinMMProbe(int type) { ALuint lLoop;