FreeCalypso > hg > gsm-codec-lib
comparison libgsmefr/enc_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 encoder. | |
4 */ | |
5 | |
6 #include <stdlib.h> | |
7 #include "gsm_efr.h" | |
8 #include "typedef.h" | |
9 #include "cnst.h" | |
10 #include "enc_state.h" | |
11 | |
12 struct EFR_encoder_state *EFR_encoder_create(int dtx) | |
13 { | |
14 struct EFR_encoder_state *st; | |
15 | |
16 st = malloc(sizeof(struct EFR_encoder_state)); | |
17 if (st) | |
18 EFR_encoder_reset(st, dtx); | |
19 return st; | |
20 } |