shithub: dumb

Download patch

ref: c052e6a45599edc6401e3c3b4513d903f6917e92
parent: 243233d3977da6693aeb131dce03c03cd74ead75
author: Chris Moeller <kode54@gmail.com>
date: Mon Mar 24 13:24:51 EDT 2014

Fixed resampler for large increments; fixes spx-troughtheinfinite.it

--- a/dumb/src/helpers/resampler.c
+++ b/dumb/src/helpers/resampler.c
@@ -110,7 +110,7 @@
     int write_pos, write_filled;
     int read_pos, read_filled;
     unsigned short phase;
-    unsigned short phase_inc;
+    unsigned int phase_inc;
     unsigned char quality;
     float buffer_in[resampler_buffer_size * 2];
     float buffer_out[resampler_buffer_size + SINC_WIDTH * 2 - 1];