From d027287d711fbf862ab97b175500af570f4c5682 Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 16 Oct 2012 10:45:46 +0200 Subject: [PATCH] Leave some notes about downsampling. --- audio/sinc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audio/sinc.c b/audio/sinc.c index 0498ab01af..8674fe97a3 100644 --- a/audio/sinc.c +++ b/audio/sinc.c @@ -230,6 +230,9 @@ static void process_sinc(rarch_resampler_t *resamp, float *out_buffer) void resampler_process(rarch_resampler_t *re, struct resampler_data *data) { + // If data->ratio is < 1, we are downsampling. + // The sinc table is not set up for this, as it always assumes upsampling. + // Downsampling will work, but with some added noise due to aliasing might be present. uint32_t ratio = PHASES_WRAP / data->ratio; const sample_t *input = data->data_in;