mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Fix clHCA lib v1.1 ATH scaling [El Shaddai (PS3)]
This commit is contained in:
parent
9c0db7cae3
commit
77e1b597a2
@ -403,7 +403,8 @@ static void ath_init1(unsigned char *ath_curve, unsigned int sample_rate) {
|
|||||||
unsigned int acc = 0;
|
unsigned int acc = 0;
|
||||||
|
|
||||||
/* scale ATH curve depending on frequency */
|
/* 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;
|
index = acc >> 13;
|
||||||
|
|
||||||
if (index >= 654) {
|
if (index >= 654) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user