Copy_Scale_sig(st->old_inp_12k8_fx,st->buf_speech_enc_pe+st->L_frame-L_INP_MEM,L_INP_MEM,sub(st->exp_old_inp_12k8,st->exp_buf_speech_enc_pe));// Scaling to common Q
// st->buf_speech_enc_pe is in st->exp_buf_speech_enc_pe
}
else
{
Scale_sig(st->buf_speech_enc_pe,L_PAST_MAX_32k+L_FRAME32k+L_NEXT_MAX_32k,sub(st->exp_buf_speech_enc_pe,st->exp_old_inp_12k8));// Scaling to common Q
Copy_Scale_sig(st->old_inp_16k_fx,st->buf_speech_enc_pe+st->L_frame-L_INP_MEM,L_INP_MEM,sub(st->exp_old_inp_16k,st->exp_buf_speech_enc_pe));// Scaling to common Q
// st->buf_speech_enc_pe is in st->exp_buf_speech_enc_pe
}
else
{
Scale_sig(st->buf_speech_enc_pe,L_PAST_MAX_32k+L_FRAME32k+L_NEXT_MAX_32k,sub(st->exp_buf_speech_enc_pe,st->exp_old_inp_16k));// Scaling to common Q