comparison intercom/g711/g711.h @ 2:13be24d74cd2

import intercom-0.4.1
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 09:57:52 +0200
parents
children
comparison
equal deleted inserted replaced
1:9cadc470e3da 2:13be24d74cd2
1 /*
2 ============================================================================
3 File: G711.H
4 ============================================================================
5
6 UGST/ITU-T G711 MODULE
7
8 GLOBAL FUNCTION PROTOTYPES
9
10 History:
11 10.Dec.91 v1.0 First version <hf@pkinbg.uucp>
12 08.Feb.92 v1.1 Non-ANSI prototypes added <tdsimao@venus.cpqd.ansp.br>
13 11.Jan.96 v1.2 Fixed misleading prototype parameter names in
14 alaw_expand() and ulaw_compress(); changed to
15 smart prototypes <simao@ctd.comsat.com>,
16 and <Volker.Springer@eedn.ericsson.se>
17 31.Jan.2000 v3.01 [version no.aligned with g711.c] Updated list of
18 compilers for smart prototypes
19 13jan2005 Byte for compressed data
20 ============================================================================
21 */
22 #ifndef G711_defined
23 #define G711_defined 301
24
25 /* Smart function prototypes: for [ag]cc, VaxC, and [tb]cc */
26 #if !defined(ARGS)
27 #if (defined(__STDC__) || defined(VMS) || defined(__DECC) || defined(MSDOS) || defined(__MSDOS__)) || defined (__CYGWIN__) || defined (_MSC_VER)
28 #define ARGS(s) s
29 #else
30 #define ARGS(s) ()
31 #endif
32 #endif
33
34 typedef unsigned char Byte;
35
36 /* Function prototypes */
37 void alaw_compress ARGS((long lseg, short *linbuf, Byte *logbuf));
38 void alaw_expand ARGS((long lseg, Byte *logbuf, short *linbuf));
39 void ulaw_compress ARGS((long lseg, short *linbuf, Byte *logbuf));
40 void ulaw_expand ARGS((long lseg, Byte *logbuf, short *linbuf));
41
42 /* Definitions for better user interface (?!) */
43 #define IS_LIN 1
44 #define IS_LOG 0
45
46 #endif
47 /* .......................... End of G711.H ........................... */

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.