mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
This commit is contained in:
@@ -187,8 +187,8 @@ static real c_b2 = .7f;
|
||||
integer ipiti[16];
|
||||
real g2pass;
|
||||
real pc[10];
|
||||
extern /* Subroutine */ int pitsyn_(integer *, integer *, integer *, real
|
||||
*, real *, integer *, integer *, integer *, real *, real *,
|
||||
extern /* Subroutine */ int pitsyn_(integer *, integer *, integer *, real
|
||||
*, real *, integer *, integer *, integer *, real *, real *,
|
||||
integer *, real *, struct lpc10_decoder_state *);
|
||||
real rci[160] /* was [10][16] */;
|
||||
|
||||
@@ -288,13 +288,13 @@ static real c_b2 = .7f;
|
||||
/* Error correction */
|
||||
/* Subroutine SETUP is the only place where order is assigned a value, */
|
||||
/* and that value is 10. It could increase efficiency 1% or so to */
|
||||
/* declare order as a constant (i.e., a Fortran PARAMETER) instead of as
|
||||
/* declare order as a constant (i.e., a Fortran PARAMETER) instead of as
|
||||
*/
|
||||
/* a variable in a COMMON block, since it is used in many places in the */
|
||||
/* core of the coding and decoding routines. Actually, I take that back.
|
||||
/* core of the coding and decoding routines. Actually, I take that back.
|
||||
*/
|
||||
/* At least when compiling with f2c, the upper bound of DO loops is */
|
||||
/* stored in a local variable before the DO loop begins, and then that is
|
||||
/* stored in a local variable before the DO loop begins, and then that is
|
||||
*/
|
||||
/* compared against on each iteration. */
|
||||
/* Similarly for lframe, which is given a value of MAXFRM in SETUP. */
|
||||
@@ -304,35 +304,35 @@ static real c_b2 = .7f;
|
||||
/* nbits is similar to quant, and is given a value of 54 in SETUP. */
|
||||
/* corrp is given a value of .TRUE. in SETUP, and is only used in the */
|
||||
/* subroutines ENCODE and DECODE. It doesn't affect the speed of the */
|
||||
/* coder significantly whether it is .TRUE. or .FALSE., or whether it is
|
||||
/* coder significantly whether it is .TRUE. or .FALSE., or whether it is
|
||||
*/
|
||||
/* a constant or a variable, since it is only examined once per frame. */
|
||||
/* Leaving it as a variable that is set to .TRUE. seems like a good */
|
||||
/* idea, since it does enable some error-correction capability for */
|
||||
/* unvoiced frames, with no change in the coding rate, and no noticeable
|
||||
/* unvoiced frames, with no change in the coding rate, and no noticeable
|
||||
*/
|
||||
/* quality difference in the decoded speech. */
|
||||
/* integer quant, nbits */
|
||||
/* *** Read/write: variables for debugging, not needed for LPC algorithm
|
||||
/* *** Read/write: variables for debugging, not needed for LPC algorithm
|
||||
*/
|
||||
|
||||
/* Current frame, Unstable frames, Output clip count, Max onset buffer,
|
||||
/* Current frame, Unstable frames, Output clip count, Max onset buffer,
|
||||
*/
|
||||
/* Debug listing detail level, Line count on listing page */
|
||||
|
||||
/* nframe is not needed for an embedded LPC10 at all. */
|
||||
/* nunsfm is initialized to 0 in SETUP, and incremented in subroutine */
|
||||
/* ERROR, which is only called from RCCHK. When LPC10 is embedded into */
|
||||
/* an application, I would recommend removing the call to ERROR in RCCHK,
|
||||
/* an application, I would recommend removing the call to ERROR in RCCHK,
|
||||
*/
|
||||
/* and remove ERROR and nunsfm completely. */
|
||||
/* iclip is initialized to 0 in SETUP, and incremented in entry SWRITE in
|
||||
/* iclip is initialized to 0 in SETUP, and incremented in entry SWRITE in
|
||||
*/
|
||||
/* sread.f. When LPC10 is embedded into an application, one might want */
|
||||
/* to cause it to be incremented in a routine that takes the output of */
|
||||
/* SYNTHS and sends it to an audio device. It could be optionally */
|
||||
/* displayed, for those that might want to know what it is. */
|
||||
/* maxosp is never initialized to 0 in SETUP, although it probably should
|
||||
/* maxosp is never initialized to 0 in SETUP, although it probably should
|
||||
*/
|
||||
/* be, and it is updated in subroutine ANALYS. I doubt that its value */
|
||||
/* would be of much interest to an application in which LPC10 is */
|
||||
@@ -345,21 +345,21 @@ static real c_b2 = .7f;
|
||||
/* Parameters/constants */
|
||||
/* Local variables that need not be saved */
|
||||
/* Local state */
|
||||
/* BUF is a buffer of speech samples that would have been returned
|
||||
/* BUF is a buffer of speech samples that would have been returned
|
||||
*/
|
||||
/* by the older version of SYNTHS, but the newer version doesn't, */
|
||||
/* so that the newer version can always return MAXFRM samples on */
|
||||
/* every call. This has the effect of delaying the return of */
|
||||
/* samples for one additional frame time. */
|
||||
|
||||
/* Indices 1 through BUFLEN contain samples that are left over from
|
||||
/* Indices 1 through BUFLEN contain samples that are left over from
|
||||
*/
|
||||
/* the last call to SYNTHS. Given the way that PITSYN works, */
|
||||
/* BUFLEN should always be in the range MAXFRM-MAXPIT+1 through */
|
||||
/* MAXFRM, inclusive, after a call to SYNTHS is complete. */
|
||||
|
||||
/* On the first call to SYNTHS (or the first call after */
|
||||
/* reinitializing with the entry INITSYNTHS), BUFLEN is MAXFRM, and
|
||||
/* reinitializing with the entry INITSYNTHS), BUFLEN is MAXFRM, and
|
||||
*/
|
||||
/* a frame of silence is always returned. */
|
||||
/* Parameter adjustments */
|
||||
@@ -388,7 +388,7 @@ static real c_b2 = .7f;
|
||||
r__1 = min(r__2,.99f);
|
||||
rc[i__] = max(r__1,-.99f);
|
||||
}
|
||||
pitsyn_(&contrl_1.order, &voice[1], pitch, rms, &rc[1], &contrl_1.lframe,
|
||||
pitsyn_(&contrl_1.order, &voice[1], pitch, rms, &rc[1], &contrl_1.lframe,
|
||||
ivuv, ipiti, rmsi, rci, &nout, &ratio, st);
|
||||
if (nout > 0) {
|
||||
i__1 = nout;
|
||||
@@ -405,7 +405,7 @@ d of */
|
||||
*buflen += ipiti[j - 1];
|
||||
}
|
||||
|
||||
/* Copy first MAXFRM samples from BUF to output array SPEECH
|
||||
/* Copy first MAXFRM samples from BUF to output array SPEECH
|
||||
*/
|
||||
/* (scaling them), and then remove them from the beginning of
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user