Fix compilation for Windows

This commit is contained in:
Chris Robinson 2009-08-28 06:33:59 -07:00
parent 1816c8bd37
commit b444dea63b
2 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -440,7 +440,7 @@ void alcWinMMDeinit()
NumCaptureDevices = 0;
}
void alcWinMMProbe(ALCboolean capture)
void alcWinMMProbe(int type)
{
ALuint lLoop;