Line data Source code
1 : /****************************************************************************** 2 : * ETSI TS 103 634 V1.5.1 * 3 : * Low Complexity Communication Codec Plus (LC3plus) * 4 : * * 5 : * Copyright licence is solely granted through ETSI Intellectual Property * 6 : * Rights Policy, 3rd April 2019. No patent licence is granted by implication, * 7 : * estoppel or otherwise. * 8 : ******************************************************************************/ 9 : 10 : #include "defines.h" 11 : #include "functions.h" 12 : 13 0 : void processPLCNoiseSubstitution_fx(Word32 spec[], Word16 spec_prev[], Word16 L_spec) 14 : { 15 : Dyn_Mem_Deluxe_In( 16 : Counter i; 17 : ); 18 : 19 0 : FOR (i = 0; i < L_spec; i++) 20 : { 21 0 : spec[i] = L_deposit_h(spec_prev[i]); 22 : } 23 : 24 : /* High pass to prevent overflows */ 25 0 : spec[0] = Mpy_32_16_lc3plus(spec[0], 6553 /* 0.2 Q15*/); move32(); 26 0 : spec[1] = Mpy_32_16_lc3plus(spec[1], 16384 /* 0.5 Q15*/); move32(); 27 : 28 : Dyn_Mem_Deluxe_Out(); 29 0 : } 30 : 31 : 32 :