diff options
author | Chris Robinson <[email protected]> | 2011-06-25 00:08:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-25 00:13:56 -0700 |
commit | 1fc44d57889ecde9bd3693dbaaceb0e9039bdfb0 (patch) | |
tree | 66f17970bcdb3675404df09fa9f49c4c41f94e7d /Alc/ALu.c | |
parent | 913c70557d562695cd7cd96fce49ab7a2818713a (diff) |
Select the mixer during a source update
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -147,6 +147,10 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } Channels = ALBuffer->FmtChannels; + + ALSource->Params.DoMix = ((Device->Flags&DEVICE_USE_HRTF) ? + SelectHrtfMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE)) : + SelectMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE))); break; } BufferListItem = BufferListItem->next; @@ -654,6 +658,10 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) if(ALSource->Params.Step == 0) ALSource->Params.Step = 1; } + + ALSource->Params.DoMix = ((Device->Flags&DEVICE_USE_HRTF) ? + SelectHrtfMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE)) : + SelectMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE))); break; } BufferListItem = BufferListItem->next; |