Mercurial > hg > audiostuff
view intercom/g711/g711.h @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | 13be24d74cd2 |
children |
line wrap: on
line source
/* ============================================================================ 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 ........................... */