FreeCalypso > hg > gsm-codec-lib
view libgsmhr1/twts002_out.c @ 522:4d2cccaeb4a7
libtest: implement TW-TS-005 reader function
Spec reference:
https://www.freecalypso.org/specs/tw-ts-005-v010002.txt
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 19 Sep 2024 03:08:47 +0000 |
parents | dc7249923b3a |
children |
line wrap: on
line source
/* * The function implemented in this module converts the output of HRv1 * speech encoder into an RTP payload per TW-TS-002, which in this * particular case is also a valid RFC 5993 payload. */ #include <stdint.h> #include "tw_gsmhr.h" void gsmhr_encoder_twts002_out(const int16_t *params, uint8_t *payload) { payload[0] = params[19] ? 0x00 : 0x20; gsmhr_pack_ts101318(params, payload + 1); }