id3: fix COMM frame handling
[sox.git] / lpc10 / prepro.c
blobb51fb27c4da2e0630276ec05857a0a3e28cb1475
1 /*
3 * Revision 1.2 1996/08/20 20:40:51 jaf
4 * Removed all static local variables that were SAVE'd in the Fortran
5 * code, and put them in struct lpc10_encoder_state that is passed as an
6 * argument.
8 * Removed init function, since all initialization is now done in
9 * init_lpc10_encoder_state().
11 * Revision 1.1 1996/08/19 22:30:54 jaf
12 * Initial revision
17 /* -- translated by f2c (version 19951025).
18 You must link the resulting object file with the libraries:
19 -lf2c -lm (in that order)
22 #include "f2c.h"
24 extern int prepro_(real *speech, integer *length,
25 struct lpc10_encoder_state *st);
27 /* Table of constant values */
29 static integer c__1 = 1;
31 /* ********************************************************************* */
33 /* PREPRO Version 48 */
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.
41 * Removed init function, since all initialization is now done in
42 * init_lpc10_encoder_state().
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. */
50 /* Revision 1.2 1996/03/14 23:09:27 jaf */
51 /* Added an entry named INITPREPRO that initializes the local state of */
52 /* this subroutine, and those it calls (if any). */
54 /* Revision 1.1 1996/02/07 14:48:54 jaf */
55 /* Initial revision */
58 /* ********************************************************************* */
60 /* Pre-process input speech: */
62 /* Inputs: */
63 /* LENGTH - Number of SPEECH samples */
64 /* Input/Output: */
65 /* SPEECH(LENGTH) - Speech data. */
66 /* Indices 1 through LENGTH are read and modified. */
68 /* This subroutine has no local state maintained from one call to the */
69 /* next, but HP100 does. If you want to switch to using a new audio */
70 /* stream for this filter, or reinitialize its state for any other */
71 /* reason, call the ENTRY INITPREPRO. */
73 /* Subroutine */ int prepro_(real *speech, integer *length,
74 struct lpc10_encoder_state *st)
76 extern /* Subroutine */ int hp100_(real *, integer *, integer *, struct lpc10_encoder_state *);
78 /* Arguments */
79 /* High Pass Filter at 100 Hz */
80 /* Parameter adjustments */
81 if (speech) {
82 --speech;
85 /* Function Body */
86 hp100_(&speech[1], &c__1, length, st);
87 return 0;
88 } /* prepro_ */