From 1b773a858534693056161c90702c4cdb013e8a64 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 28 Jun 2011 00:30:00 -0700 Subject: Select the correct resampler --- Alc/ALu.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index c92a29d3..8bfe305b 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -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; -- cgit v1.2.3