diff options
author | Chris Robinson <[email protected]> | 2010-01-09 02:48:18 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-01-09 02:48:18 -0800 |
commit | 3d11fb219eda2b81253824ce5fb233ad05edf7da (patch) | |
tree | fbd3f67f79ed6b1ae2d16d561fb4979cc44b51d3 | |
parent | 4d9a368f96b14ed20bffdc6700a077b1fe875487 (diff) |
Hold the default context extensions globally
-rw-r--r-- | Alc/ALc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -208,6 +208,13 @@ static tls_type LocalContext; // Context Error static ALCenum g_eLastContextError = ALC_NO_ERROR; +// Default context extensions +static const ALchar alExtList[] = + "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"; + // Mixing Priority Level ALint RTPrioLevel; @@ -608,7 +615,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_sample_buffer_object AL_EXTX_source_distance_model AL_LOKI_quadriphonic"; + pContext->ExtensionList = alExtList; } |