DTX: add data necessary for scheduling

DTXd: to schedule SID repetition we have to know when previous SID was
sent (fn) and if it was UPDATE or FIRST SID (is_update).
DTXu: to properly set Marker bit in outgoing RTP we have to know the
beginning of talkspurt. For codecs without explicit ONSET event we can
do it by setting the flag (ul_sid) upon receiving SID and unsetting it
on speech frames.

Change-Id: I79cbec3b6c6fed5de385f8e202ceaf0b13234778
Related: OS#22, OS#1701
This commit is contained in:
Max
2016-06-10 14:09:07 +02:00
parent ae3f0718f1
commit f5fe31d513

View File

@@ -289,7 +289,12 @@ struct gsm_lchan {
struct {
uint8_t buf[16];
uint8_t len;
uint32_t fn;
bool is_update;
} last_sid;
/* set for each SID frame to detect talkspurt for codecs without
explicit ONSET event */
bool ul_sid;
uint8_t last_cmr;
uint32_t last_fn;
/* indicates if DTXd was active during DL measurement period */