prepro.c
上传用户:zslianheng
上传日期:2013-04-03
资源大小:946k
文件大小:3k
源码类别:

Linux/Unix编程

开发平台:

Visual C++

  1. /*
  2. $Log: prepro.c,v $
  3. Revision 1.1.1.1  2002/07/28 05:23:44  freeman_yong
  4. lpc10 codec
  5.  * Revision 1.2  1996/08/20  20:40:51  jaf
  6.  * Removed all static local variables that were SAVE'd in the Fortran
  7.  * code, and put them in struct lpc10_encoder_state that is passed as an
  8.  * argument.
  9.  *
  10.  * Removed init function, since all initialization is now done in
  11.  * init_lpc10_encoder_state().
  12.  *
  13.  * Revision 1.1  1996/08/19  22:30:54  jaf
  14.  * Initial revision
  15.  *
  16. */
  17. #ifdef P_R_O_T_O_T_Y_P_E_S
  18. extern int prepro_(real *speech, integer *length,
  19.    struct lpc10_encoder_state *st)
  20. /*:ref: hp100_ 14 3 6 4 4 */
  21. /*:ref: inithp100_ 14 0 */
  22. #endif
  23. /*  -- translated by f2c (version 19951025).
  24.    You must link the resulting object file with the libraries:
  25. -lf2c -lm   (in that order)
  26. */
  27. #include "f2c.h"
  28. /* Table of constant values */
  29. static integer c__1 = 1;
  30. /* ********************************************************************* */
  31. /*  PREPRO Version 48 */
  32. /* $Log: prepro.c,v $
  33. /* Revision 1.1.1.1  2002/07/28 05:23:44  freeman_yong
  34. /* lpc10 codec
  35. /*
  36.  * Revision 1.2  1996/08/20  20:40:51  jaf
  37.  * Removed all static local variables that were SAVE'd in the Fortran
  38.  * code, and put them in struct lpc10_encoder_state that is passed as an
  39.  * argument.
  40.  *
  41.  * Removed init function, since all initialization is now done in
  42.  * init_lpc10_encoder_state().
  43.  *
  44.  * Revision 1.1  1996/08/19  22:30:54  jaf
  45.  * Initial revision
  46.  * */
  47. /* Revision 1.3  1996/03/14  23:22:56  jaf */
  48. /* Added comments about when INITPREPRO should be used. */
  49. /* Revision 1.2  1996/03/14  23:09:27  jaf */
  50. /* Added an entry named INITPREPRO that initializes the local state of */
  51. /* this subroutine, and those it calls (if any). */
  52. /* Revision 1.1  1996/02/07  14:48:54  jaf */
  53. /* Initial revision */
  54. /* ********************************************************************* */
  55. /*    Pre-process input speech: */
  56. /* Inputs: */
  57. /*  LENGTH - Number of SPEECH samples */
  58. /* Input/Output: */
  59. /*  SPEECH(LENGTH) - Speech data. */
  60. /*                   Indices 1 through LENGTH are read and modified. */
  61. /* This subroutine has no local state maintained from one call to the */
  62. /* next, but HP100 does.  If you want to switch to using a new audio */
  63. /* stream for this filter, or reinitialize its state for any other */
  64. /* reason, call the ENTRY INITPREPRO. */
  65. /* Subroutine */ int prepro_(real *speech, integer *length,
  66.      struct lpc10_encoder_state *st)
  67. {
  68.     extern /* Subroutine */ int hp100_(real *, integer *, integer *, struct lpc10_encoder_state *);
  69. /*       Arguments */
  70. /*   High Pass Filter at 100 Hz */
  71.     /* Parameter adjustments */
  72.     if (speech) {
  73. --speech;
  74. }
  75.     /* Function Body */
  76.     hp100_(&speech[1], &c__1, length, st);
  77.     return 0;
  78. } /* prepro_ */