shithub: aacenc

Download patch

ref: 3e76dc06a0ad69ae194e923fb925b3d66d3da96e
parent: 741746a7782b44a4592760b814b565226f9ef039
author: menno <menno>
date: Wed Oct 4 15:45:33 EDT 2000

LFE is now also working correctly

--- a/enc_tf.c
+++ b/enc_tf.c
@@ -485,7 +485,7 @@
     for (chanNum=0;chanNum<max_ch;chanNum++) {
       if (channelInfo[chanNum].lfe) {
         int i;
-        for (i = sfb_offset_table[chanNum][4];
+        for (i = sfb_offset_table[chanNum][10];
 			i < sfb_offset_table[chanNum][nr_of_sfb[chanNum]]; i++)
           spectral_line_vector[chanNum][i] = 0;
       }
--- a/psych.c
+++ b/psych.c
@@ -633,10 +633,10 @@
 			} else if (channelInfo[chanNum].lfe) { /* LFE */
 
 				// LFE psych ratios are set to -24 dB for low frequencies
-				for (i = 0; i < 4; i++) {
+				for (i = 0; i < 10; i++) {
 					psy_stvar_long[chanNum].ismr[i] = 0.004; /* -24 dB */
 				}
-				for (i = 4; i < NSFB_LONG; i++) {
+				for (i = 10; i < NSFB_LONG; i++) {
 					psy_stvar_long[chanNum].ismr[i] = 1.0;
 				}
 				p_chpo_long[chanNum].p_ratio   = psy_stvar_long[chanNum].ismr;