这是一个从音频信号里提取特征参量的程序

源代码在线查看: char.h

软件大小: 7567 K
上传用户: babydog00
关键词: 音频信号 特征 参量 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				// file: $isip/class/char/Char/Char.h				// version: $Id: Char.h,v 1.28 2001/04/23 22:57:29 peng Exp $				//								// make sure definitions are only made once				//				#ifndef ISIP_CHAR				#define ISIP_CHAR								// isip include files				//				#ifndef ISIP_SYS_CHAR				#include 				#endif								#ifndef ISIP_STRING				#include 				#endif								#ifndef ISIP_MEMORY_MANAGER				#include 				#endif								// Char: a class that implements a generic character capability by				// inheriting the SysChar class functionality. we only need to add Sof file				// support and scalar type conversions for the full scalar object.				//				class Char : public SysChar {								  //---------------------------------------------------------------------------				  //				  // public constants				  //				  //---------------------------------------------------------------------------				public:								  // define the class name				  //				  static const String CLASS_NAME;								  //----------------------------------------				  //				  // other important constants				  //				  //----------------------------------------				  				  //----------------------------------------				  //				  // default values and arguments				  //				  //----------------------------------------  								  // define the default value(s) of the class data				  //  note that DEF_VALUE is missing because we inherit SysChar's DEF_VALUE				  //				  				  // default arguments to methods				  //				  static const String DEF_PARAM;				  				  //----------------------------------------				  //				  // error codes				  //				  //----------------------------------------  				  				  static const long ERR = 20300;								  //---------------------------------------------------------------------------				  //				  // protected data				  //				  //---------------------------------------------------------------------------				protected:								  // a static memory manager				  //				  static MemoryManager mgr_d;				  				  //---------------------------------------------------------------------------				  //				  // required public methods				  //				  //---------------------------------------------------------------------------				public:				  				  // method: name				  //				  static const String& name() {				    return CLASS_NAME;				  }								  // other static methods				  //				  static boolean diagnose(Integral::DEBUG debug_level);								  // debug methods:				  //  the setDebug method is inherited from the MScalar template class				  //				  boolean debug(const unichar* message) const;				  				  // method: destructor				  //				  ~Char() {}								  // method: default constructor				  //				  Char(unichar arg = DEF_VALUE) {				    value_d = arg;				  }								  // method: copy constructor 				  //				  Char(const Char& arg) {				    value_d = (unichar)arg;				  }				  				  // assign methods:				  //  these methods are inherited from the MScalar template class				  //								  // method: operator=				  //				  Char& operator= (const Char& arg) {				    assign(arg);				    return *this;				  }								  // method: sofSize				  //				  long sofSize() const {				    return sizeof(value_d);				  }				  				  // other i/o methods				  //				  boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);				  boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;								  boolean readData(Sof& sof, const String& pname = DEF_PARAM,						   long size = SofParser::FULL_OBJECT,						   boolean param = true,						   boolean nested = false);				  boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;								  // equality methods:				  //  these methods are inherited from the SysChar template class				  //								  // method: new				  //				  static void* operator new(size_t size) {				    return mgr_d.get();				  }								  // method: new[]				  //				  static void* operator new[](size_t size) {				    return mgr_d.getBlock(size);				  }								  // method: delete				  //				  static void operator delete(void* ptr) {				    mgr_d.release(ptr);				  }								  // method: delete[]				  //				  static void operator delete[](void* ptr) {				    mgr_d.releaseBlock(ptr);				  }								  // method: setGrowSize				  //				  static boolean setGrowSize(long grow_size) {				    return mgr_d.setGrow(grow_size);				  }								  // other memory management methods:				  //  these methods are inherited from the SysChar template class				  //				  				  //---------------------------------------------------------------------------				  //				  // class-specific public methods				  //				  //---------------------------------------------------------------------------								  // method: Char				  //				  Char(const byte* data, ENCODE encoding = DEF_ENCODE) {				    long len;				    assign(len, data, encoding);				  }								  //---------------------------------------------------------------------------				  //				  // private methods				  //				  //---------------------------------------------------------------------------				private:								};								// end of include file				//				#endif							

相关资源