5
|
1 /*
|
|
2 * SpanDSP - a series of DSP components for telephony
|
|
3 *
|
|
4 * test_utils.h - Utility routines for module tests.
|
|
5 *
|
|
6 * Written by Steve Underwood <steveu@coppice.org>
|
|
7 *
|
|
8 * Copyright (C) 2006 Steve Underwood
|
|
9 *
|
|
10 * All rights reserved.
|
|
11 *
|
|
12 * This program is free software; you can redistribute it and/or modify
|
|
13 * it under the terms of the GNU General Public License version 2, as
|
|
14 * published by the Free Software Foundation.
|
|
15 *
|
|
16 * This program is distributed in the hope that it will be useful,
|
|
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 * GNU General Public License for more details.
|
|
20 *
|
|
21 * You should have received a copy of the GNU General Public License
|
|
22 * along with this program; if not, write to the Free Software
|
|
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
24 *
|
|
25 * $Id: test_utils.h,v 1.6 2006/10/24 13:45:29 steveu Exp $
|
|
26 */
|
|
27
|
|
28 /*! \file */
|
|
29
|
|
30 #if !defined(_TEST_UTILS_H_)
|
|
31 #define _TEST_UTILS_H_
|
|
32
|
|
33 enum
|
|
34 {
|
|
35 MUNGE_CODEC_NONE = 0,
|
|
36 MUNGE_CODEC_ALAW,
|
|
37 MUNGE_CODEC_ULAW,
|
|
38 MUNGE_CODEC_G726_40K,
|
|
39 MUNGE_CODEC_G726_32K,
|
|
40 MUNGE_CODEC_G726_24K,
|
|
41 MUNGE_CODEC_G726_16K,
|
|
42 };
|
|
43
|
|
44 typedef struct codec_munge_state_s codec_munge_state_t;
|
|
45
|
|
46 #ifdef __cplusplus
|
|
47 extern "C" {
|
|
48 #endif
|
|
49
|
|
50 codec_munge_state_t *codec_munge_init(int codec);
|
|
51
|
|
52 void codec_munge(codec_munge_state_t *s, int16_t amp[], int len);
|
|
53
|
|
54 #ifdef __cplusplus
|
|
55 }
|
|
56 #endif
|
|
57
|
|
58 #endif
|
|
59 /*- End of file ------------------------------------------------------------*/
|