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

📄 itgl_05.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/class/system/Integral/itgl_05.cc// version: $Id: itgl_05.cc,v 1.6 2003/05/14 15:35:48 zheng Exp $//// isip include files//#include "Integral.h"#include <SysString.h>#include <time.h>// method: makeTemp//// arguments://  SysString& tmp_file: (output) filename//// return: a boolean value indicating status//// create a temporary filename//boolean Integral::makeTemp(SysString& tmp_file_a) {  // declare local variables  //  SysString name;  SysString numeric;    // create static String constants out of the constants  //  static SysString tmpdir((unichar*)TMPDIR);  static SysString tmp_fmt_0((unichar*)TMP_FMT_0);  static SysString tmp_fmt_1((unichar*)TMP_FMT_1);  static SysString tmp_template((unichar*)TMP_TEMPLATE);  static long tempFileCounter = 1;  // start with /tmp/tmp_  //  name.concat(tmpdir, tmp_fmt_0);  // add the process id:  //  %7.7lu is the print format  //  numeric.assign((long)Integral::getPid(), L"%6.6lu");  name.concat(numeric);  name.concat(tmp_fmt_1);  // add time stamp  // using current time   //  numeric.assign((ulong)(time()), L"%10.10lu");  name.concat(numeric);  name.concat(tmp_fmt_1);    // add the static variable  //  numeric.assign((long)tempFileCounter++, L"%d");  name.concat(numeric);  // call the master function  //  return makeTemp(tmp_file_a, name);}// method: makeTemp//// arguments://  SysString& tmp_file: (output) filename//  const SysString& basename: (input) base-name to call mktemp with//// return: a boolean value indicating status//// create a temporary filename//boolean Integral::makeTemp(SysString& tmp_file_a,			   const SysString& basename_a) {  // assign the file name  //  tmp_file_a.assign((byte*)basename_a);    // register the temp file  //  File::registerTemp(tmp_file_a);    // exit gracefully  //  return true;}

⌨️ 快捷键说明

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