Fix clHCA lib v1.1 ATH scaling [El Shaddai (PS3)]

This commit is contained in:
bnnm 2018-09-02 16:07:59 +02:00
parent 9c0db7cae3
commit 77e1b597a2

View File

@ -403,7 +403,8 @@ static void ath_init1(unsigned char *ath_curve, unsigned int sample_rate) {
unsigned int acc = 0;
/* scale ATH curve depending on frequency */
for (i = 0; i < HCA_SAMPLES_PER_SUBFRAME; i++, acc += sample_rate) { //todo add accumulator before to fix ATH
for (i = 0; i < HCA_SAMPLES_PER_SUBFRAME; i++) {
acc += sample_rate;
index = acc >> 13;
if (index >= 654) {