diff options
author | Chris Robinson <[email protected]> | 2014-03-23 17:33:57 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-23 17:33:57 -0700 |
commit | e2cb41dc61c2cebbd231beac5b6797e245ca619f (patch) | |
tree | c23fa026a2417d062b6e21490d3cd2f1c48010df /Alc/mixer_c.c | |
parent | 72986882f549275c6c946b325a9c75b1547f37f1 (diff) |
Remove the last bits of the predictive sample processing
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r-- | Alc/mixer_c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index e4eb9071..efbbf9cb 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -19,7 +19,7 @@ void Resample_copy32_C(const ALfloat *data, ALuint UNUSED(frac), ALuint increment, ALfloat *restrict OutBuffer, ALuint BufferSize) { assert(increment==FRACTIONONE); - memcpy(OutBuffer, data, (BufferSize+1)*sizeof(ALfloat)); + memcpy(OutBuffer, data, BufferSize*sizeof(ALfloat)); } #define DECL_TEMPLATE(Sampler) \ @@ -29,7 +29,7 @@ void Resample_##Sampler##_C(const ALfloat *data, ALuint frac, \ ALuint pos = 0; \ ALuint i; \ \ - for(i = 0;i < BufferSize+1;i++) \ + for(i = 0;i < BufferSize;i++) \ { \ OutBuffer[i] = Sampler(data + pos, frac); \ \ |