FreeCalypso > hg > gsm-codec-lib
view libgsmhr1/sid_cw_params.c @ 602:72cdae602d6e
libgsmhr1/dec_func.c: rm unused static functions
In the original code, sp_dec.c held two kinds of functions: those
needed only as part of the decoder, and those used by both decoder
and encoder engines. In this library, we have moved the latter
class of functions to dec_func.c module. Almost all static functions
from the original sp_dec.c, with the exception of aToRc(), are
needed only on sp_dec.c side of the new divide - remove them from
dec_func.c, where they became dead code.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 04 Dec 2025 18:58:22 +0000 |
| parents | 993cb9273f89 |
| children |
line wrap: on
line source
/* * The function in this module fills parameters 4 through 17 of * generated SID frames, setting them to the required SID codeword. * It can also be used to transform a speech frame into a SID frame * with the same R0 and LPC parameters. */ #include <stdint.h> #include "tw_gsmhr.h" void gsmhr_set_sid_cw_params(int16_t *params) { /* Int_LPC and Mode */ params[4] = 1; params[5] = 3; /* subframe 1 */ params[6] = 0xFF; params[7] = 0x1FF; params[8] = 0x1F; /* subframe 2 */ params[9] = 0xF; params[10] = 0x1FF; params[11] = 0x1F; /* subframe 3 */ params[12] = 0xF; params[13] = 0x1FF; params[14] = 0x1F; /* subframe 4 */ params[15] = 0xF; params[16] = 0x1FF; params[17] = 0x1F; }
