aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-28 00:30:00 -0700
committerChris Robinson <[email protected]>2011-06-28 00:30:00 -0700
commit1b773a858534693056161c90702c4cdb013e8a64 (patch)
tree9ee78ef3ad12369f13455ed8472c4559805878af /Alc/ALu.c
parent3f0214ed6bd866e961d315f8ed4a5160a357e078 (diff)
Select the correct resampler
Diffstat (limited to 'Alc/ALu.c')
-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;