aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-05 06:03:19 -0700
committerChris Robinson <[email protected]>2012-10-05 06:03:19 -0700
commita6287fd407b87b0bf983dcf8fc17ac66c0ae7d23 (patch)
tree68ce82ccac121b92982af6c2d944f4a856057ca7 /Alc/mixer.c
parent16bdf79d4cbb87a90ff70d981d02eecb0fc4bed1 (diff)
Add a special resampler for matching sample rates
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 7671f1b3..5b180f1e 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -116,7 +116,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
DataPosFrac = Source->position_fraction;
Looping = Source->Looping;
increment = Source->Params.Step;
- Resampler = Source->Resampler;
+ Resampler = (increment==FRACTIONONE) ? PointResampler : Source->Resampler;
NumChannels = Source->NumChannels;
SampleSize = Source->SampleSize;