sndblock.h

来自「ears-0.32, linux下有用的语音信号处理工具包」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef Sndblock_h#define Sndblock_hstruct sndblock        // The smallest unit of sound{  sndblock (int s, int b) :     buf_(new short[s]), size_(s), bits_(b) {}    sndblock (const sndblock& s) :    buf_(new short[s.size_]), size_(s.size_), bits_(s.bits_)    { memcpy (buf_, s.buf_, sizeof(short)*size_); }    ~sndblock() { delete [] buf_; }    short* const buf() const { return buf_; }  int energy()       const { return energy_; }  int size()         const { return size_; }  int bits()         const { return bits_; }  short* const buf_;  const size_, bits_;  int energy_;};#endif

⌨️ 快捷键说明

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