ref: 85297714b9f89914a04c39c340a2433a20925f2c
parent: a39b4d41f63ed34754bcfe94e1638ab2fe9ecb71
author: Chris Moeller <kode54@gmail.com>
date: Sun Jan 11 12:18:53 EST 2015
Fixed a bug with resampler not clearing blep/blam state variables
--- a/dumb/src/helpers/resampler.c
+++ b/dumb/src/helpers/resampler.c
@@ -322,6 +322,8 @@
if (r->quality == RESAMPLER_QUALITY_BLEP || r->quality == RESAMPLER_QUALITY_BLAM)
{
r->inv_phase = 0;
+ r->last_amp = 0;
+ r->accumulator = 0;
memset(r->buffer_out, 0, sizeof(r->buffer_out));
}
}