diff options
author | Chris Robinson <[email protected]> | 2011-06-28 00:30:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-28 00:30:00 -0700 |
commit | 1b773a858534693056161c90702c4cdb013e8a64 (patch) | |
tree | 9ee78ef3ad12369f13455ed8472c4559805878af /Alc/ALu.c | |
parent | 3f0214ed6bd866e961d315f8ed4a5160a357e078 (diff) |
Select the correct resampler
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -149,8 +149,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))); + SelectHrtfMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : ALSource->Resampler) : + SelectMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : ALSource->Resampler)); break; } BufferListItem = BufferListItem->next; @@ -660,8 +662,10 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } ALSource->Params.DoMix = ((Device->Flags&DEVICE_USE_HRTF) ? - SelectHrtfMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE)) : - SelectMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE))); + SelectHrtfMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : ALSource->Resampler) : + SelectMixer(ALBuffer, (ALSource->Params.Step==FRACTIONONE) ? + POINT_RESAMPLER : ALSource->Resampler)); break; } BufferListItem = BufferListItem->next; |