mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
Leave some notes about downsampling.
This commit is contained in:
parent
ff914dd862
commit
d027287d71
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user