aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALu.c12
1 files 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;