libsndfile source files.
[Faustine.git] / interpretor / libsndfile-1.0.25 / src / GSM610 / gsm_create.c
1 /*
2 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
3 * Universitaet Berlin. See the accompanying file "COPYRIGHT" for
4 * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
5 */
6
7 #include "config.h"
8
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12
13
14
15 #include "gsm.h"
16 #include "gsm610_priv.h"
17
18 gsm gsm_create (void)
19 {
20 gsm r;
21
22 r = malloc (sizeof(struct gsm_state));
23 if (!r) return r;
24
25 memset((char *)r, 0, sizeof (struct gsm_state));
26 r->nrp = 40;
27
28 return r;
29 }
30
31 /* Added for libsndfile : May 6, 2002. Not sure if it works. */
32 void gsm_init (gsm state)
33 {
34 memset (state, 0, sizeof (struct gsm_state)) ;
35 state->nrp = 40 ;
36 }
37