FreeCalypso > hg > gsm-codec-lib
view libgsmhr1/bitter-voiced @ 605:63f774192906
gsmhr_decoder_twts002_in(): set BFI=1 SID=1 for invalid SID
When a received TW-TS-002 RTP payload indicates invalid SID,
which of the 3 possible BFI/SID combinations should we pass to
our internal ETSI-based speech decoder or TFO engine?
Our original code passed BFI=0 SID=1, but upon further reflection,
BFI=1 SID=1 is a better choice. In the corner case where received
invalid SID is fed to a full decoder in homed state, setting BFI=1
allows that decoder to emit zeros on PCM and stay homed, instead of
launching into full decoding.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 04 Dec 2025 21:01:46 +0000 |
| parents | 4d80730683d4 |
| children |
line wrap: on
line source
; This file is an input to the old 'bitter' utility from libgsm source ; package; it will be used to generate C code for TS 101 318 packing and ; unpacking. This version is for voiced modes. params[0] 5 ; R0 params[1] 11 ; LPC1 params[2] 9 ; LPC2 params[3] 8 ; LPC3 params[4] 1 ; INT LPC params[5] 2 ; Mode ; subframe 1 params[6] 8 params[7] 9 params[8] 5 ; subframe 2 params[9] 4 params[10] 9 params[11] 5 ; subframe 3 params[12] 4 params[13] 9 params[14] 5 ; subframe 4 params[15] 4 params[16] 9 params[17] 5
