⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filt_set_1.cc

📁 这是处理语音信号的程序
💻 CC
字号:
// file: filter/filt_set_1.cc//// system include files//#include <strings.h>#include <memory.h>// isip include files//#include "filter.h"#include "filter_constants.h"// method: allocate_cc//// arguments://  int_4 width_d: (input) length of filter to create//// return: a logical_1 indicating status//logical_1 Filter::allocate_cc(int_4 width_a) {  if (width_a > width_d) {    // delete the data, if necessary    //    if (data_d != (float_8*)NULL) {      delete [] data_d;      data_d = (float_8*)NULL;    }        // allocate the data    //    data_d = new float_8[width_a];  }  else {    // use pre-existing memory    //    memset(data_d, 0, sizeof(float_8)*width_a);  }     // set the filter width  //  width_d = width_a;  // exit gracefully  //  return ISIP_TRUE;}

⌨️ 快捷键说明

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