open un-writable sessions without complaining, and desensitize all/most actions that...
[ardour.git] / libs / libsndfile / 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 /*
38 ** Do not edit or modify anything in this comment block.
39 ** The arch-tag line is a file identity tag for the GNU Arch 
40 ** revision control system.
41 **
42 ** arch-tag: 9fedb6b3-ed99-40c2-aac1-484c536261fe
43 */
44