Mercurial > hg > audiostuff
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/intercom/g711/g711.h Fri Jun 25 09:57:52 2010 +0200 @@ -0,0 +1,47 @@ +/* + ============================================================================ + File: G711.H + ============================================================================ + + UGST/ITU-T G711 MODULE + + GLOBAL FUNCTION PROTOTYPES + + History: + 10.Dec.91 v1.0 First version <hf@pkinbg.uucp> + 08.Feb.92 v1.1 Non-ANSI prototypes added <tdsimao@venus.cpqd.ansp.br> + 11.Jan.96 v1.2 Fixed misleading prototype parameter names in + alaw_expand() and ulaw_compress(); changed to + smart prototypes <simao@ctd.comsat.com>, + and <Volker.Springer@eedn.ericsson.se> + 31.Jan.2000 v3.01 [version no.aligned with g711.c] Updated list of + compilers for smart prototypes + 13jan2005 Byte for compressed data + ============================================================================ +*/ +#ifndef G711_defined +#define G711_defined 301 + +/* Smart function prototypes: for [ag]cc, VaxC, and [tb]cc */ +#if !defined(ARGS) +#if (defined(__STDC__) || defined(VMS) || defined(__DECC) || defined(MSDOS) || defined(__MSDOS__)) || defined (__CYGWIN__) || defined (_MSC_VER) +#define ARGS(s) s +#else +#define ARGS(s) () +#endif +#endif + +typedef unsigned char Byte; + +/* Function prototypes */ +void alaw_compress ARGS((long lseg, short *linbuf, Byte *logbuf)); +void alaw_expand ARGS((long lseg, Byte *logbuf, short *linbuf)); +void ulaw_compress ARGS((long lseg, short *linbuf, Byte *logbuf)); +void ulaw_expand ARGS((long lseg, Byte *logbuf, short *linbuf)); + +/* Definitions for better user interface (?!) */ +#define IS_LIN 1 +#define IS_LOG 0 + +#endif +/* .......................... End of G711.H ........................... */