comparison libgsmefr/dec_create.c @ 51:722959d9410f

libgsmefr: implement EFR_{en,de}coder_create() functions
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Nov 2022 06:46:22 +0000
parents libgsmfrp/state.c@286d5f097eb4
children 23656d874524
comparison
equal deleted inserted replaced
50:9ae58ffb4197 51:722959d9410f
1 /*
2 * In this module we implement allocation and initialization
3 * of state structures for our GSM EFR decoder.
4 */
5
6 #include <stdlib.h>
7 #include "gsm_efr.h"
8 #include "typedef.h"
9 #include "cnst.h"
10 #include "dec_state.h"
11
12 struct EFR_decoder_state *EFR_decoder_create(void)
13 {
14 struct EFR_decoder_state *st;
15
16 st = malloc(sizeof(struct EFR_decoder_state));
17 if (st)
18 EFR_decoder_reset(st);
19 return st;
20 }