Fix wrong sample rate of ES1370 software synth playback

Fixes low pitch problems when MIDI is played back through the software synth.

Co-Authored-By: Cacodemon345 <38420290+Cacodemon345@users.noreply.github.com>
This commit is contained in:
Jasmine Iwanek
2025-01-05 14:47:39 -05:00
parent eaa4f16379
commit 3226999246

View File

@@ -423,9 +423,9 @@ es1370_calc_sample_rate(es137x_t *dev)
dev->calc_sample_rate = 5512;
}
dev->calc_sample_rate_synth = 44100 / (1 << ((dev->int_ctrl >> 12) & 3));
dev->interp_factor_synth = 1. / (double) (1 << ((dev->int_ctrl >> 12) & 3));
dev->interp_step_synth = (1 << ((dev->int_ctrl >> 12) & 3));
dev->calc_sample_rate_synth = 44100 / (1 << (((dev->int_ctrl >> 12) & 3) ^ 3));
dev->interp_factor_synth = 1. / (double) ((1 << ((dev->int_ctrl >> 12) & 3) ^ 3));
dev->interp_step_synth = (1 << (((dev->int_ctrl >> 12) & 3) ^ 3));
}
static void