aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-25 00:08:05 -0700
committerChris Robinson <[email protected]>2011-06-25 00:13:56 -0700
commit1fc44d57889ecde9bd3693dbaaceb0e9039bdfb0 (patch)
tree66f17970bcdb3675404df09fa9f49c4c41f94e7d /Alc/ALu.c
parent913c70557d562695cd7cd96fce49ab7a2818713a (diff)
Select the mixer during a source update
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index ae09ccaa..602bd487 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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;