Commit 46c9a56a authored by vaclav's avatar vaclav
Browse files

clean out a commented code

parent bead3686
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1424,7 +1424,6 @@ void stereo_switching_dec(

            sts[0]->tilt_code = 0.0f;
            sts[0]->gc_threshold = 0.0f;
            /*init_gp_clip( sts[1]->clip_var );*/

            set_f( sts[0]->mem_syn1, 0, M );
            set_f( sts[0]->mem_syn2, 0, M );
@@ -1454,7 +1453,6 @@ void stereo_switching_dec(

        sts[1]->tilt_code = 0.0f;
        sts[1]->gc_threshold = 0.0f;
        /*init_gp_clip( sts[1]->clip_var );*/

        set_f( sts[1]->mem_syn1, 0, M );
        set_f( sts[1]->mem_syn2, 0, M );
+1 −4
Original line number Diff line number Diff line
@@ -758,11 +758,8 @@ void stereo_switching_enc(

        /* no secondary channel in the previous frame -> memory resets */
        set_zero( sts[1]->old_inp_12k8, L_INP_MEM );
        /*set_zero( sts[1]->old_inp_16k, L_INP_MEM );*/
        set_zero( sts[1]->mem_decim, 2 * L_FILT_MAX );
        /*set_zero( sts[1]->mem_decim16k, 2*L_FILT_MAX );*/
        sts[1]->mem_preemph = 0;
        /*sts[1]->mem_preemph16k = 0;*/

        set_zero( sts[1]->buf_speech_enc, L_PAST_MAX_32k + L_FRAME32k + L_NEXT_MAX_32k );
        set_zero( sts[1]->buf_speech_enc_pe, L_PAST_MAX_32k + L_FRAME32k + L_NEXT_MAX_32k );
@@ -812,7 +809,7 @@ void stereo_switching_enc(
                sts[1]->input[-sts[0]->encoderLookahead_FB + i] = ( ( sts[0]->encoderLookahead_FB - i ) * sts[0]->input[-sts[0]->encoderLookahead_FB + i] + i * sts[1]->input[-sts[0]->encoderLookahead_FB + i] ) * tmpF;
                sts[0]->input[-sts[0]->encoderLookahead_FB + i] = ( ( sts[0]->encoderLookahead_FB - i ) * sts[0]->input[-sts[0]->encoderLookahead_FB + i] + i * sts[1]->input[-2 * sts[0]->encoderLookahead_FB + i] ) * tmpF;
            }
            /* restore continous signal in right channel (part of old_output was used to store original left channel) */
            /* restore continuous signal in right channel (part of old_output was used to store original left channel) */
            mvr2r( sts[0]->input - sts[0]->hTcxEnc->L_frameTCX, sts[1]->input - sts[0]->hTcxEnc->L_frameTCX, sts[0]->hTcxEnc->L_frameTCX - sts[0]->encoderLookahead_FB );

            sts[1]->last_core = sts[0]->last_core;