diff options
author | Chris Robinson <[email protected]> | 2009-12-26 20:27:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-12-26 20:27:14 -0800 |
commit | 528a4c6a02cfdba9721af2d949a08ce48baf256d (patch) | |
tree | 87a38652cd93b7e5128fcbbf87bedf737888d584 /Alc/ALc.c | |
parent | 1770a8b62bf692be37c719cd18a03654dcc567a6 (diff) |
Update panning for existing AL contexts when creating a new one
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -606,8 +606,6 @@ static ALvoid InitContext(ALCcontext *pContext) 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"; - - aluInitPanning(pContext); } @@ -1295,6 +1293,7 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint } source->NeedsUpdate = AL_TRUE; } + aluInitPanning(context); ProcessContext(context); } @@ -1335,6 +1334,7 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint ALContext->Device = device; InitContext(ALContext); + aluInitPanning(ALContext); ALContext->next = g_pContextList; g_pContextList = ALContext; |