diff options
author | Chris Robinson <[email protected]> | 2012-04-27 23:46:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-27 23:46:51 -0700 |
commit | 2450ee1723daddd8f0977f2589b45e126b1ae62a (patch) | |
tree | ebb8910200865cf92fe583d5990f776cd2311d70 /Alc/ALu.c | |
parent | 67f1cdfcbe537d8f53e90c73d8a2358fa2138791 (diff) |
Use separate methods for the dry and wet mixing loops
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) { |