From 003aaeee1927d1bbc8cc15afe47bcfdb512f329a Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Mon, 24 Mar 2014 17:21:25 -0700 Subject: [PATCH] Fixed resampler for large increment counts --- Frameworks/Dumb/dumb/src/helpers/resampler.c | 2 +- Frameworks/modplay/modplay/resampler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/Dumb/dumb/src/helpers/resampler.c b/Frameworks/Dumb/dumb/src/helpers/resampler.c index 90126136c..16ff0dc88 100644 --- a/Frameworks/Dumb/dumb/src/helpers/resampler.c +++ b/Frameworks/Dumb/dumb/src/helpers/resampler.c @@ -110,7 +110,7 @@ typedef struct resampler 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]; diff --git a/Frameworks/modplay/modplay/resampler.c b/Frameworks/modplay/modplay/resampler.c index 1f9ff3de4..5a06ef0ac 100644 --- a/Frameworks/modplay/modplay/resampler.c +++ b/Frameworks/modplay/modplay/resampler.c @@ -110,7 +110,7 @@ typedef struct resampler 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];