diff options
author | Chris Robinson <[email protected]> | 2011-10-04 09:55:36 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-10-04 09:55:36 -0700 |
commit | eb277cc57835d246400f724c1050cc0724e31af6 (patch) | |
tree | 97e8997e10aee3872c4763dcf0c0b32839309617 /Alc/ALu.c | |
parent | 20fd648729579a37e138fe2c018d075fa4e23a53 (diff) |
Remove some unneeded templates and parameters
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 29 |
1 files changed, 12 insertions, 17 deletions
@@ -174,19 +174,16 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } Channels = ALBuffer->FmtChannels; - - if(ALSource->VirtualChannels && (Device->Flags&DEVICE_USE_HRTF)) - ALSource->Params.DoMix = SelectHrtfMixer(ALBuffer, - (ALSource->Params.Step==FRACTIONONE) ? POINT_RESAMPLER : - Resampler); - else - ALSource->Params.DoMix = SelectMixer(ALBuffer, - (ALSource->Params.Step==FRACTIONONE) ? POINT_RESAMPLER : - Resampler); break; } BufferListItem = BufferListItem->next; } + if(ALSource->VirtualChannels && (Device->Flags&DEVICE_USE_HRTF)) + ALSource->Params.DoMix = SelectHrtfMixer((ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : Resampler); + else + ALSource->Params.DoMix = SelectMixer((ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : Resampler); /* Calculate gains */ DryGain = clampf(SourceVolume, MinVolume, MaxVolume); @@ -688,18 +685,16 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALSource->Params.Step = 1; } - if((Device->Flags&DEVICE_USE_HRTF)) - ALSource->Params.DoMix = SelectHrtfMixer(ALBuffer, - (ALSource->Params.Step==FRACTIONONE) ? POINT_RESAMPLER : - Resampler); - else - ALSource->Params.DoMix = SelectMixer(ALBuffer, - (ALSource->Params.Step==FRACTIONONE) ? POINT_RESAMPLER : - Resampler); break; } BufferListItem = BufferListItem->next; } + if((Device->Flags&DEVICE_USE_HRTF)) + ALSource->Params.DoMix = SelectHrtfMixer((ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : Resampler); + else + ALSource->Params.DoMix = SelectMixer((ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : Resampler); if((Device->Flags&DEVICE_USE_HRTF)) { |