g711.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. ============================================================================
  3. File: G711.H
  4. ============================================================================
  5. UGST/ITU-T G711 MODULE
  6. GLOBAL FUNCTION PROTOTYPES
  7. History:
  8. 10.Dec.91 v1.0 First version <hf@pkinbg.uucp>
  9. 08.Feb.92 v1.1 Non-ANSI prototypes added <tdsimao@venus.cpqd.ansp.br>
  10. 11.Jan.96 v1.2 Fixed misleading prototype parameter names in
  11. alaw_expand() and ulaw_compress(); changed to
  12. smart prototypes <simao@ctd.comsat.com>,
  13. and <Volker.Springer@eedn.ericsson.se>
  14. 31.Jan.2000 v3.01 [version no.aligned with g711.c] Updated list of
  15. compilers for smart prototypes
  16. ============================================================================
  17. */
  18. #ifndef G711_defined
  19. #define G711_defined 301
  20. /* Smart function prototypes: for [ag]cc, VaxC, and [tb]cc */
  21. #if !defined(ARGS)
  22. #if (defined(__STDC__) || defined(VMS) || defined(__DECC) || defined(MSDOS) || defined(__MSDOS__)) || defined (__CYGWIN__) || defined (_MSC_VER)
  23. #define ARGS(s) s
  24. #else
  25. #define ARGS(s) ()
  26. #endif
  27. #endif
  28. /* Function prototypes */
  29. void alaw_compress ARGS ((long lseg, short *linbuf, short *logbuf));
  30. void alaw_expand ARGS ((long lseg, short *logbuf, short *linbuf));
  31. void ulaw_compress ARGS ((long lseg, short *linbuf, short *logbuf));
  32. void ulaw_expand ARGS ((long lseg, short *logbuf, short *linbuf));
  33. /* Definitions for better user interface (?!) */
  34. #define IS_LIN 1
  35. #define IS_LOG 0
  36. #endif
  37. /* .......................... End of G711.H ........................... */