Ignore:
Timestamp:
10/07/06 02:49:28 (18 years ago)
Author:
r2d
Message:
  • fixed a LOT of bugs
  • fixed a bug that took me 2 days to find :)
  • remember to ALWAYS use -Wall with a C compiler (C++ is great !!!)
  • files can be played, but are not bit identical with the 1.15w encoder (the last digits of floats are not the same) - must be fixed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mppenc/branches/r2d/libmpcpsy/ans.c

    r60 r71  
    3838static float  Sin_Tab    [16] [MAX_NS_ORDER + 1];
    3939
     40float         ANSspec_L  [MAX_ANS_LINES];
     41float         ANSspec_R  [MAX_ANS_LINES];       // L/R-masking thresholds for ANS
     42float         ANSspec_M  [MAX_ANS_LINES];
     43float         ANSspec_S  [MAX_ANS_LINES];       // M/S-masking thresholds for ANS
    4044
    4145void
     
    284288    memset ( m->FIR_L,      0, sizeof m->FIR_L      );         // reset FIR
    285289    memset ( m->NS_Order_L, 0, sizeof m->NS_Order_L );         // reset Flags
    286         FindOptimalANS ( MaxBand, MSflag, m->ANSspec_L, m->ANSspec_M, m->NS_Order_L, m->SNR_comp_L, m->FIR_L, smr.L, smr.M, m->SCF_Index_L, Transient );
     290        FindOptimalANS ( MaxBand, MSflag, ANSspec_L, ANSspec_M, m->NS_Order_L, m->SNR_comp_L, m->FIR_L, smr.L, smr.M, m->SCF_Index_L, Transient );
    287291
    288292    // for R or S, respectively
    289293        memset ( m->FIR_R,      0, sizeof m->FIR_R      );         // reset FIR
    290294        memset ( m->NS_Order_R, 0, sizeof m->NS_Order_R );         // reset Flags
    291         FindOptimalANS ( MaxBand, MSflag, m->ANSspec_R, m->ANSspec_S, m->NS_Order_R, m->SNR_comp_R, m->FIR_R, smr.R, smr.S, m->SCF_Index_R, Transient );
     295        FindOptimalANS ( MaxBand, MSflag, ANSspec_R, ANSspec_S, m->NS_Order_R, m->SNR_comp_R, m->FIR_R, smr.R, smr.S, m->SCF_Index_R, Transient );
    292296
    293297    return;
Note: See TracChangeset for help on using the changeset viewer.