lag_wind.c

来自「关于AMR-WB+语音压缩编码的实现代码」· C语言 代码 · 共 24 行

C
24
字号
/*-------------------------------------------------------------*
 * procedure init_lag_wind:                                    *
 *           ~~~~~~~~~~~~~~                                    *
 * Compute the lag window (for windowing the autocorrelations  *
 * in LP analysis).                                            *
 *-------------------------------------------------------------*/
#include "../include/amr_plus.h"
/*-------------------------------------------------------------*
 * procedure lag_wind:                                         *
 *           ~~~~~~~~~                                         *
 * lag windowing of the autocorrelations                       *
 *-------------------------------------------------------------*/
void lag_wind(
  float  r[],           /* in/out: autocorrelations            */
  int m                 /* input : order of LP filter          */
)
{
  int i;
  for (i = 0; i <= m; i++) {
    r[i] *= lag_window[i];
  }
  return;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?