FreeCalypso > hg > gsm-codec-lib
view libgsmefr/enc_wrap.c @ 586:b21ea4ab586d
libgsmhr1: update for TW-TS-002 version 1.2.0
The component of libgsmhr1 being changed is RTP input functions;
the change is accepting FT=1 (invalid SID) frames both with and
without payload data bits.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 10 Mar 2025 02:03:31 +0000 |
parents | 269d341db403 |
children |
line wrap: on
line source
/* * This module contains our EFR_encode_frame() function, which is the primary * (most common, most useful) interface to our EFR encoder. */ #include "gsm_efr.h" void EFR_encode_frame(struct EFR_encoder_state *st, const int16_t *pcm_in, uint8_t *frame, int *sp_out, int *vad_out) { int16_t params[EFR_NUM_PARAMS]; int sp; EFR_encode_params(st, pcm_in, params, &sp, vad_out); EFR_params2frame(params, frame); if (!sp) EFR_insert_sid_codeword(frame); if (sp_out) *sp_out = sp; }