view libgsmefr/enc_create.c @ 282:9ee8ad3d4d30

frtest: rm gsmfr-hand-test and gsmfr-max-out utils These hack programs were never properly documented and were written only as part of a debug chase, in pursuit of a bug that ultimately turned out to be in our then-hacky patch to osmo-bts-sysmo, before beginning of proper patches in Osmocom. These hack programs need to be dropped from the present sw package because they depend on old libgsm, and we are eliminating that dependency.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Apr 2024 05:44:47 +0000
parents 722959d9410f
children
line wrap: on
line source

/*
 * In this module we implement allocation and initialization
 * of state structures for our GSM EFR encoder.
 */

#include <stdlib.h>
#include "gsm_efr.h"
#include "typedef.h"
#include "cnst.h"
#include "enc_state.h"

struct EFR_encoder_state *EFR_encoder_create(int dtx)
{
	struct EFR_encoder_state *st;

	st = malloc(sizeof(struct EFR_encoder_state));
	if (st)
		EFR_encoder_reset(st, dtx);
	return st;
}