aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-23 17:33:57 -0700
committerChris Robinson <[email protected]>2014-03-23 17:33:57 -0700
commite2cb41dc61c2cebbd231beac5b6797e245ca619f (patch)
treec23fa026a2417d062b6e21490d3cd2f1c48010df /Alc/mixer.c
parent72986882f549275c6c946b325a9c75b1547f37f1 (diff)
Remove the last bits of the predictive sample processing
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 122476e5..311d0abd 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -90,7 +90,6 @@ static void DoFilter(ALfilterState *filter, ALfloat *restrict dst, const ALfloat
ALuint i;
for(i = 0;i < numsamples;i++)
dst[i] = ALfilterState_processSingle(filter, src[i]);
- dst[i] = ALfilterState_processSingleC(filter, src[i]);
}
@@ -133,7 +132,7 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo)
ALuint SrcBufferSize, DstBufferSize;
/* Figure out how many buffer samples will be needed */
- DataSize64 = SamplesToDo-OutPos+1;
+ DataSize64 = SamplesToDo-OutPos;
DataSize64 *= increment;
DataSize64 += DataPosFrac+FRACTIONMASK;
DataSize64 >>= FRACTIONBITS;
@@ -145,7 +144,6 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo)
DataSize64 = SrcBufferSize;
DataSize64 -= BufferPadding+BufferPrePadding;
DataSize64 <<= FRACTIONBITS;
- DataSize64 -= increment;
DataSize64 -= DataPosFrac;
DstBufferSize = (ALuint)((DataSize64+(increment-1)) / increment);