From 085398614ad0326d48eb8bfe402e0f4044bf0230 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 4 Oct 2017 19:09:39 +0200 Subject: Enable compilation warnings, and switch toolame-dab to using double --- libtoolame-dab/ath.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libtoolame-dab/ath.c') diff --git a/libtoolame-dab/ath.c b/libtoolame-dab/ath.c index 8544752..94baf8e 100644 --- a/libtoolame-dab/ath.c +++ b/libtoolame-dab/ath.c @@ -51,9 +51,8 @@ bitrate is more balanced according to the -V value.*/ /* Convert ATH values from dB into energy values as required by the psycho model */ -float ATH_energy(float freq, float value) { - float db; - db = ATH_dB(freq, 0) + value; // Originally: ATH_dB(freq,value) +FLOAT8 ATH_energy(FLOAT8 freq, FLOAT8 value) { + FLOAT db = ATH_dB(freq, 0) + value; // Originally: ATH_dB(freq,value) /* The values in the standard, and from the ATH formula are in dB. In the psycho model we are working in the energy domain. Hence the values that are in the absthr_X tables are not in dB. This function converts from dB into the energy domain. -- cgit v1.2.3