vad.h 711 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. ITU-T G.729A Annex B ANSI-C Source Code
  3. Version 1.3 Last modified: August 1997
  4. Copyright (c) 1996, France Telecom, Rockwell International,
  5. Universite de Sherbrooke.
  6. All rights reserved.
  7. */
  8. #define NP 12 /* Increased LPC order */
  9. #define NOISE 0
  10. #define VOICE 1
  11. #define INIT_FRAME 32
  12. #define INIT_COUNT 20
  13. #define ZC_START 120
  14. #define ZC_END 200
  15. void vad_init(void);
  16. void vad(
  17. Word16 rc,
  18. Word16 *lsf,
  19. Word16 *r_h,
  20. Word16 *r_l,
  21. Word16 exp_R0,
  22. Word16 *sigpp,
  23. Word16 frm_count,
  24. Word16 prev_marker,
  25. Word16 pprev_marker,
  26. Word16 *marker);