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

📄 example.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/doc/examples/class/mmedia/mmedia_example_00/example.cc// version: $Id: example.cc,v 1.2 2000/12/28 21:23:54 hamaker Exp $//// isip include files//#include <AudioFile.h>// main program starts here//int main() {    // declare AudioFile objects for read and write  //  AudioFile src;  src.open(L"./input.raw");    AudioFile dst;  dst.setFileType(AudioFile::SOF_TEXT);      String output(L"./output.sof");  dst.open(output, File::WRITE_ONLY);    // loop through 50 samples at a time  //  for (long i = 0; i < 5; i++) {        Vector<VectorFloat> data(1);        // call    // getData(VectorFloat& data, long channel_tag, long start_samp, long num_samp);    //    src.getData(data(0), 0, i * 50, 501);        // write these 50 samples to the output    //    dst.writeAudioData(data, 0);  }  src.close();  dst.close();    output.debug(L"output");    // exit gracefully  //  Integral::exit();}

⌨️ 快捷键说明

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