From 2972de1047b36d3f31c2e85f6e29b7b52682878f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 6 May 2011 00:20:40 -0700 Subject: Use function pointers to call the source mixer --- OpenAL32/alSource.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index d6e9b18a..fd77527f 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -570,6 +570,7 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) Source->Update = CalcSourceParams; else Source->Update = CalcNonAttnSourceParams; + SelectMixer(Source, buffer); // Increment reference counter for buffer buffer->refcount++; @@ -1614,6 +1615,7 @@ AL_API ALvoid AL_APIENTRY alSourceQueueBuffers(ALuint source, ALsizei n, const A Source->Update = CalcSourceParams; else Source->Update = CalcNonAttnSourceParams; + SelectMixer(Source, buffer); Source->NeedsUpdate = AL_TRUE; } -- cgit v1.2.3