diff options
author | Chris Robinson <[email protected]> | 2007-12-31 19:34:52 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-31 19:34:52 -0800 |
commit | 3d78d93b4033ea94d38981e75f10c6dee5264860 (patch) | |
tree | eff0ee8b22ea032075fd16046d6cb24fa52a8243 /Alc/ALc.c | |
parent | 5a2f509104b196bbef336b6c772cd621473f2e55 (diff) | |
parent | 9382956b0ec459a696805a23656a9e94b6ed94d9 (diff) |
Merge branch 'master' into efx-experiment
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -30,6 +30,9 @@ #include "alSource.h" #include "AL/al.h" #include "AL/alc.h" +#include "alThunk.h" +#include "alSource.h" +#include "alExtension.h" /////////////////////////////////////////////////////// // DEBUG INFORMATION @@ -371,7 +374,7 @@ static ALvoid InitContext(ALCcontext *pContext) pContext->lNumStereoSources = 1; pContext->lNumMonoSources = pContext->Device->MaxNoOfSources - pContext->lNumStereoSources; - strcpy(pContext->ExtensionList, "AL_EXT_EXPONENT_DISTANCE AL_EXT_LINEAR_DISTANCE AL_EXT_OFFSET"); + strcpy(pContext->ExtensionList, "AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET"); } @@ -423,6 +426,9 @@ ALCAPI ALCdevice* ALCAPIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, AL InitAL(); + if(deviceName && !deviceName[0]) + deviceName = NULL; + pDevice = malloc(sizeof(ALCdevice)); if (pDevice) { @@ -1072,6 +1078,9 @@ ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(const ALCchar *deviceName) InitAL(); + if(deviceName && !deviceName[0]) + deviceName = NULL; + device = malloc(sizeof(ALCdevice)); if (device) { |