diff options
author | Chris Robinson <[email protected]> | 2009-08-16 00:54:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-16 00:54:08 -0700 |
commit | 0b7eb9f118a259f4bc666140093b6be7dcf01158 (patch) | |
tree | 808f71536e3df4b38d0b9e9eae76e25a372ef33d /Alc | |
parent | dc26261065a7ff78657ac79accc993c78069deca (diff) |
Add in-progress working extension AL_EXTX_sample_buffer_object
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -34,6 +34,7 @@ #include "alBuffer.h" #include "alExtension.h" #include "alAuxEffectSlot.h" +#include "alDatabuffer.h" #include "bs2b.h" #include "alu.h" @@ -490,7 +491,7 @@ static ALvoid InitContext(ALCcontext *pContext) pContext->DopplerVelocity = 1.0f; pContext->flSpeedOfSound = SPEEDOFSOUNDMETRESPERSEC; - pContext->ExtensionList = "AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_source_distance_model AL_LOKI_quadriphonic"; + pContext->ExtensionList = "AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXTX_source_distance_model AL_LOKI_quadriphonic"; level = GetConfigValueInt(NULL, "cf_level", 0); if(level > 0 && level <= 6) @@ -1429,6 +1430,13 @@ ALCAPI ALCboolean ALCAPIENTRY alcCloseDevice(ALCdevice *pDevice) #endif ReleaseALFilters(pDevice); } + if(pDevice->DatabufferCount > 0) + { +#ifdef _DEBUG + AL_PRINT("alcCloseDevice(): deleting %d Databuffer(s)\n", pDevice->DatabufferCount); +#endif + ReleaseALDatabuffers(pDevice); + } //Release device structure memset(pDevice, 0, sizeof(ALCdevice)); |