Ignore:
Timestamp:
10/02/06 23:20:16 (19 years ago)
Author:
r2d
Message:
  • mppenc compiles and runs, but output is not playing
File:
1 edited

Legend:

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

    r65 r66  
    8585
    8686// fft_routines.c
    87 void   Init_FFT      ( void );
     87void   Init_FFT      ( PsyModel* );
    8888void   PowSpec256    ( const float*, float* );
    8989void   PowSpec1024   ( const float*, float* );
     
    9696{
    9797    int  i;
    98 
    99     // generate FFT lookup-tables with largest FFT-size of 1024
    100     Init_FFT ();
    101 
    102     // setting pre-echo variables to Ltq
    103     for ( i = 0; i < PART_LONG; i++ ) {
    104                 m->pre_erg_L  [0][i/3] = m->pre_erg_R  [0][i/3] =
    105                                 m->pre_erg_L  [1][i/3] = m->pre_erg_R  [1][i/3] =
    106                                 m->tmp_Mask_L [i]   = m->tmp_Mask_R [i]   =
    107                                 m->PreThr_L   [i]   = m->PreThr_R   [i]   = m->partLtq [i];
    108     }
    10998
    11099    // initializing arrays with zero
     
    124113        m->SampleFreq = 0.;
    125114        m->Bandwidth = 0.;
     115        m->KBD1 = 2.;
     116        m->KBD2 = -1.;
     117
     118    // generate FFT lookup-tables with largest FFT-size of 1024
     119        Init_FFT (m);
     120
     121    // setting pre-echo variables to Ltq
     122        for ( i = 0; i < PART_LONG; i++ ) {
     123                m->pre_erg_L  [0][i/3] = m->pre_erg_R  [0][i/3] =
     124                                m->pre_erg_L  [1][i/3] = m->pre_erg_R  [1][i/3] =
     125                                m->tmp_Mask_L [i]   = m->tmp_Mask_R [i]   =
     126                                m->PreThr_L   [i]   = m->PreThr_R   [i]   = m->partLtq [i];
     127        }
    126128
    127129    return;
Note: See TracChangeset for help on using the changeset viewer.