FreeCalypso > hg > gsm-codec-lib
diff libgsmfr2/pp_good.c @ 530:96c4ed5529bf
libgsmfr2 preproc: implement support for DTXd
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 19 Sep 2024 20:15:54 +0000 |
parents | 573afa985df6 |
children |
line wrap: on
line diff
--- a/libgsmfr2/pp_good.c Thu Sep 19 08:07:26 2024 +0000 +++ b/libgsmfr2/pp_good.c Thu Sep 19 20:15:54 2024 +0000 @@ -19,6 +19,7 @@ switch (sid) { case 0: /* good speech frame */ st->rx_state = SPEECH; + st->dtxd_sid_flag = 0; memcpy(&st->speech_frame, frame, GSMFR_RTP_FRAME_LEN); return; case 1: /* invalid SID frame */ @@ -27,6 +28,7 @@ return; case 2: /* valid SID frame */ st->rx_state = COMFORT_NOISE; + st->dtxd_sid_flag = 1; gsmfr_preproc_sid2cn(st, frame); return; }