search for: fec_samples

Displaying 1 result from an estimated 1 matches for "fec_samples".

2019 Jul 15
0
How to enable OPUS inband FEC
...;m trying to decode the packet with decode_fec = 1 and then the same packet with decode_fec = 0: In the code below, suggest to replace ‘ads->ch’ with ‘numChannels’ to make it more clear to what you refer to.) if(packet_lost ) { if(opus_packet_has_fec(buf, (opus_int32)len, sample_rate)) { fec_samples = opus_packet_get_samples_per_frame(buf, sample_rate); info("opus: there is fec packets=%d\n", fec_samples); n = opus_decode( ads->dec, buf, (opus_int32)len, sampv, fec_samples, 1); if (n < 0) { warning("opus: decode error: %s\n", opus_strerror(n)); return EPROT...