view libhr/tw_gsmhr.h @ 51:db39e8855f3d

ater: implement play-d144
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 25 Sep 2024 05:53:38 +0000
parents e1eabf554a75
children
line wrap: on
line source

/*
 * This header file is a reduced subset version of <tw_gsmhr.h>
 * from work-in-progress libgsmhr1, reduced to just the few functions
 * needed for itt-ater-8.
 */

#pragma once

#include <stdint.h>

#define	GSMHR_NUM_PARAMS	18	/* actual codec parameters */
#define	GSMHR_NUM_PARAMS_ENC	20	/* output from the encoder */
#define	GSMHR_NUM_PARAMS_DEC	22	/* input to the decoder */

#define	GSMHR_FRAME_LEN_RPF	14	/* raw packed format */
#define	GSMHR_FRAME_LEN_5993	15	/* RFC 5993 and TW-TS-002 */

/* the few functions we've imported from WIP libgsmhr1 */

void gsmhr_pack_ts101318(const int16_t *param, uint8_t *payload);
int gsmhr_check_common_params(const int16_t *params);
int gsmhr_check_decoder_params(const int16_t *params);