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

📄 err_04.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/class/system/Error/err_04.cc// version: $Id: err_04.cc,v 1.1 2000/09/20 12:58:09 hamaker Exp $//// isip include files//#include "Error.h"//--------------------------------------------------------------// these methods have to be in the same file so they can use the same// function pointer. this is a really nasty break in the C++// hierarchy, but it results in a really nice feature in that all Sof// files are cleanly closed on any fatal error (which gets reported.// for seg-faults you are on your own).//---------------------------------------------------------------//// the static pointer to the global function//static boolean (*ISIPcloseSof)(void);// a flag indicating if the sof has been set//static boolean sof_initialized_d = false;// method: setSofPointer//// arguments://  boolean (*method) (void): (input) a static global function pointer//// return: a boolean value indicating status//// Sof's constructor will call this method to set a static global// function pointer to a global method in the i/o library which knows// how to cleanly close all open sof files.//boolean Error::setSofPointer(boolean (*method_a) (void)) {  // set the static function pointer  //  ISIPcloseSof = method_a;  sof_initialized_d = true;  // exit gracefully  //  return true;}// method: closeSof//// arguments: none//// return: a boolean value indicating status//// call the statically defined method which closes all Sof files//boolean Error::closeSof() {  // if the function pointer has been set, call it  //  if (sof_initialized_d) {    return (*ISIPcloseSof)();  }  // function pointer was never set, meaning no Sof objects have ever  // been constructed. exit gracefully  //  return true;}

⌨️ 快捷键说明

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