ref: a89f5606f22437a42640507bf549056a3a841a3c
parent: cdc0e155b86c96083911fb5ba5dc607fd7a1d62e
author: Snesrev <snesrev@protonmail.com>
date: Sun Sep 11 08:36:11 EDT 2022
Better location rounding in resample code
--- a/snes/dsp.c
+++ b/snes/dsp.c
@@ -637,7 +637,7 @@
void dsp_getSamples(Dsp* dsp, int16_t* sampleData, int samplesPerFrame, int numChannels) {
// resample from 534 samples per frame to wanted value
float adder = 534.0 / samplesPerFrame;
- float location = 0.0;
+ float location = 0.5f;
if (numChannels == 1) {
for (int i = 0; i < samplesPerFrame; i++) {