RTS API Documentation  1.10.11
switch_spandsp.c
Go to the documentation of this file.
1 /*
2  * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
3  * Copyright (C) 2005-2015, Anthony Minessale II <anthm@freeswitch.org>
4  *
5  * Version: MPL 1.1
6  *
7  * The contents of this file are subject to the Mozilla Public License Version
8  * 1.1 (the "License"); you may not use this file except in compliance with
9  * the License. You may obtain a copy of the License at
10  * http://www.mozilla.org/MPL/F
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
18  *
19  * The Initial Developer of the Original Code is
20  * Michael Jerris <mike@jerris.com>
21  * Portions created by the Initial Developer are Copyright (C)
22  * the Initial Developer. All Rights Reserved.
23  *
24  * Contributor(s):
25  *
26  * Michael Jerris <mike@jerris.com>
27  * Andrey Volk <andrey@signalwrie.com>
28  *
29  * switch_spandsp.c -- spandsp wrappers and extensions
30  *
31  */
32 
33 #include <switch.h>
34 
35 #define SPANDSP_NO_TIFF 1
36 #include "spandsp.h"
37 
39  return (switch_plc_state_t *)plc_init((plc_state_t *)s);
40 }
41 
43  return plc_free((plc_state_t *)s);
44 }
45 
46 SWITCH_DECLARE(int) switch_plc_fillin(switch_plc_state_t *s, int16_t amp[], int len) {
47  return plc_fillin((plc_state_t *)s, amp, len);
48 }
49 
50 SWITCH_DECLARE(int) switch_plc_rx(switch_plc_state_t* s, int16_t amp[], int len)
51 {
52  return plc_rx((plc_state_t*)s, amp, len);
53 }
54 
55 
56 /* For Emacs:
57  * Local Variables:
58  * mode:c
59  * indent-tabs-mode:t
60  * tab-width:4
61  * c-basic-offset:4
62  * End:
63  * For VIM:
64  * vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
65  */
int switch_plc_free(switch_plc_state_t *s)
int switch_plc_rx(switch_plc_state_t *s, int16_t amp[], int len)
void * switch_plc_state_t
Main Library Header.
#define SWITCH_DECLARE(type)
int switch_plc_fillin(switch_plc_state_t *s, int16_t amp[], int len)
switch_plc_state_t * switch_plc_init(switch_plc_state_t *s)