prepro.c 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. $Log$
  3. Revision 1.15 2004/06/26 03:50:14 markster
  4. Merge source cleanups (bug #1911)
  5. Revision 1.14 2003/02/12 13:59:15 matteo
  6. mer feb 12 14:56:57 CET 2003
  7. Revision 1.1.1.1 2003/02/12 13:59:15 matteo
  8. mer feb 12 14:56:57 CET 2003
  9. Revision 1.2 2000/01/05 08:20:39 markster
  10. Some OSS fixes and a few lpc changes to make it actually work
  11. * Revision 1.2 1996/08/20 20:40:51 jaf
  12. * Removed all static local variables that were SAVE'd in the Fortran
  13. * code, and put them in struct lpc10_encoder_state that is passed as an
  14. * argument.
  15. *
  16. * Removed init function, since all initialization is now done in
  17. * init_lpc10_encoder_state().
  18. *
  19. * Revision 1.1 1996/08/19 22:30:54 jaf
  20. * Initial revision
  21. *
  22. */
  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. #ifdef P_R_O_T_O_T_Y_P_E_S
  29. extern int prepro_(real *speech, integer *length,
  30. struct lpc10_encoder_state *st);
  31. /*:ref: hp100_ 14 3 6 4 4 */
  32. /*:ref: inithp100_ 14 0 */
  33. #endif
  34. /* Table of constant values */
  35. static integer c__1 = 1;
  36. /* ********************************************************************* */
  37. /* PREPRO Version 48 */
  38. /* $Log$
  39. * Revision 1.15 2004/06/26 03:50:14 markster
  40. * Merge source cleanups (bug #1911)
  41. *
  42. * Revision 1.14 2003/02/12 13:59:15 matteo
  43. * mer feb 12 14:56:57 CET 2003
  44. *
  45. * Revision 1.1.1.1 2003/02/12 13:59:15 matteo
  46. * mer feb 12 14:56:57 CET 2003
  47. *
  48. * Revision 1.2 2000/01/05 08:20:39 markster
  49. * Some OSS fixes and a few lpc changes to make it actually work
  50. *
  51. * Revision 1.2 1996/08/20 20:40:51 jaf
  52. * Removed all static local variables that were SAVE'd in the Fortran
  53. * code, and put them in struct lpc10_encoder_state that is passed as an
  54. * argument.
  55. *
  56. * Removed init function, since all initialization is now done in
  57. * init_lpc10_encoder_state().
  58. *
  59. * Revision 1.1 1996/08/19 22:30:54 jaf
  60. * Initial revision
  61. * */
  62. /* Revision 1.3 1996/03/14 23:22:56 jaf */
  63. /* Added comments about when INITPREPRO should be used. */
  64. /* Revision 1.2 1996/03/14 23:09:27 jaf */
  65. /* Added an entry named INITPREPRO that initializes the local state of */
  66. /* this subroutine, and those it calls (if any). */
  67. /* Revision 1.1 1996/02/07 14:48:54 jaf */
  68. /* Initial revision */
  69. /* ********************************************************************* */
  70. /* Pre-process input speech: */
  71. /* Inputs: */
  72. /* LENGTH - Number of SPEECH samples */
  73. /* Input/Output: */
  74. /* SPEECH(LENGTH) - Speech data. */
  75. /* Indices 1 through LENGTH are read and modified. */
  76. /* This subroutine has no local state maintained from one call to the */
  77. /* next, but HP100 does. If you want to switch to using a new audio */
  78. /* stream for this filter, or reinitialize its state for any other */
  79. /* reason, call the ENTRY INITPREPRO. */
  80. /* Subroutine */ int prepro_(real *speech, integer *length,
  81. struct lpc10_encoder_state *st)
  82. {
  83. extern /* Subroutine */ int hp100_(real *, integer *, integer *, struct lpc10_encoder_state *);
  84. /* Arguments */
  85. /* High Pass Filter at 100 Hz */
  86. /* Parameter adjustments */
  87. if (speech) {
  88. --speech;
  89. }
  90. /* Function Body */
  91. hp100_(&speech[1], &c__1, length, st);
  92. return 0;
  93. } /* prepro_ */