Openal on linux (get stuck but doens't crash)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2876 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-04-05 14:02:03 +00:00
parent adbd88866c
commit 405480342a
1 changed files with 2 additions and 3 deletions

View File

@ -36,8 +36,8 @@ ALDeviceList::ALDeviceList()
ALDEVICEINFO ALDeviceInfo;
char *devices;
s32 index;
const char *defaultDeviceName;
const char *actualDeviceName;
const char *defaultDeviceName = NULL;
const char *actualDeviceName = NULL;
// DeviceInfo vector stores, for each enumerated device, it's device name, selection status, spec version #, and extension support
vDeviceInfo.empty();
@ -78,7 +78,6 @@ ALDeviceList::ALDeviceList()
}
if ((bNewName) && (actualDeviceName != NULL) && (strlen(actualDeviceName) > 0))
{
memset(&ALDeviceInfo, 0, sizeof(ALDEVICEINFO)); // the creative was brain broken.
ALDeviceInfo.bSelected = true;
ALDeviceInfo.strDeviceName = actualDeviceName;
alcGetIntegerv(device, ALC_MAJOR_VERSION, sizeof(s32), &ALDeviceInfo.iMajorVersion);