aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-27 23:46:51 -0700
committerChris Robinson <[email protected]>2012-04-27 23:46:51 -0700
commit2450ee1723daddd8f0977f2589b45e126b1ae62a (patch)
treeebb8910200865cf92fe583d5990f776cd2311d70 /Alc/ALu.c
parent67f1cdfcbe537d8f53e90c73d8a2358fa2138791 (diff)
Use separate methods for the dry and wet mixing loops
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index f6a4b8c1..fabef277 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -172,9 +172,10 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
BufferListItem = BufferListItem->next;
}
if(!DirectChannels && Device->Hrtf)
- ALSource->Params.DoMix = SelectHrtfMixer(Resampler);
+ ALSource->Params.DryMix = SelectHrtfMixer(Resampler);
else
- ALSource->Params.DoMix = SelectMixer(Resampler);
+ ALSource->Params.DryMix = SelectDirectMixer(Resampler);
+ ALSource->Params.WetMix = SelectSendMixer(Resampler);
/* Calculate gains */
DryGain = clampf(SourceVolume, MinVolume, MaxVolume);
@@ -684,9 +685,10 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
BufferListItem = BufferListItem->next;
}
if(Device->Hrtf)
- ALSource->Params.DoMix = SelectHrtfMixer(Resampler);
+ ALSource->Params.DryMix = SelectHrtfMixer(Resampler);
else
- ALSource->Params.DoMix = SelectMixer(Resampler);
+ ALSource->Params.DryMix = SelectDirectMixer(Resampler);
+ ALSource->Params.WetMix = SelectSendMixer(Resampler);
if(Device->Hrtf)
{