Changeset 71 for mppenc/branches/r2d/src/mppenc.c
- Timestamp:
- 10/07/06 02:49:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/r2d/src/mppenc.c
r67 r71 683 683 memcpy ( errorL [Band], errorL[Band] + 36, MAX_NS_ORDER * sizeof (**errorL) ); 684 684 } 685 } else {686 685 } 687 686 … … 694 693 memcpy ( errorR [Band], errorR [Band] + 36, MAX_NS_ORDER * sizeof (**errorL) ); 695 694 } 696 } else {697 695 } 698 696 } … … 1035 1033 if ( 2 != sscanf ( argv[k], "%f,%f", &(m->KBD1), &(m->KBD2) )) 1036 1034 { stderr_printf ( "%s: missing two arguments", arg ); return -1; } 1037 Init_FFT ( );1035 Init_FFT (m); 1038 1036 } 1039 1037 else if ( 0 == strcmp ( arg, "fadein") ) { // FadeInTime … … 1592 1590 1593 1591 // initialize tables which must be initialized once and only once 1592 1593 m.SCF_Index_L = (int*) SCF_Index_L; 1594 m.SCF_Index_R = (int*) SCF_Index_R; 1595 1594 1596 #ifdef FAST_MATH 1595 1597 Init_FastMath (); // check if something has to be done for each file !! 1596 1598 #endif 1597 1599 Init_SV7 (); 1600 Init_Skalenfaktoren (); 1598 1601 Init_Psychoakustik (&m); 1599 SetQualityParams (&m, 5.0);1600 Init_Psychoakustiktabellen (&m);1601 Init_Skalenfaktoren ();1602 1602 Init_FPU (); 1603 1603 Init_ANS (); … … 1746 1746 WriteHeader_SV7 ( &e, m.Max_Band, MainQual, m.MS_Channelmode > 0, LastValidFrame, LastValidSamples, PNS > 0 ? 0x17 : 0x07, m.SampleFreq ); 1747 1747 1748 1748 1749 // initialize timer 1749 1750 ShowProgress (&m, 0, SamplesInWAVE, e.BufferedBits ); … … 1849 1850 memmove ( Main.S, Main.S + BLOCK, CENTER * sizeof(float) ); 1850 1851 1851 if ( AllSamplesRead + BLOCK > SamplesInWAVE )1852 {1853 int n = 0;1854 }1855 1856 1852 // read samples 1857 1853 CurrentRead = Read_WAV_Samples ( &Wave, (int)minf(BLOCK, SamplesInWAVE - AllSamplesRead), &Main, CENTER, ScalingFactorl, ScalingFactorr, &Silence );
Note: See TracChangeset
for help on using the changeset viewer.