mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-11 23:37:05 +00:00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3761 d0543943-73ff-0310-b7d9-9358b9ac24b2
45 lines
875 B
C
45 lines
875 B
C
/*
|
|
* Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
|
|
* Universitaet Berlin. See the accompanying file "COPYRIGHT" for
|
|
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "gsm.h"
|
|
#include "gsm610_priv.h"
|
|
|
|
gsm gsm_create (void)
|
|
{
|
|
gsm r;
|
|
|
|
r = malloc (sizeof(struct gsm_state));
|
|
if (!r) return r;
|
|
|
|
memset((char *)r, 0, sizeof (struct gsm_state));
|
|
r->nrp = 40;
|
|
|
|
return r;
|
|
}
|
|
|
|
/* Added for libsndfile : May 6, 2002. Not sure if it works. */
|
|
void gsm_init (gsm state)
|
|
{
|
|
memset (state, 0, sizeof (struct gsm_state)) ;
|
|
state->nrp = 40 ;
|
|
}
|
|
/*
|
|
** Do not edit or modify anything in this comment block.
|
|
** The arch-tag line is a file identity tag for the GNU Arch
|
|
** revision control system.
|
|
**
|
|
** arch-tag: 9fedb6b3-ed99-40c2-aac1-484c536261fe
|
|
*/
|
|
|