silentblockfile.h

来自「Audacity是一款用於錄音和編輯聲音的、免費的開放源碼軟體。它可以執行於Ma」· C头文件 代码 · 共 62 行

H
62
字号
/**********************************************************************  Audacity: A Digital Audio Editor  SilentBlockFile.h  Dominic Mazzoni**********************************************************************/#ifndef __AUDACITY_SILENT_BLOCKFILE__#define __AUDACITY_SILENT_BLOCKFILE__#include <wx/string.h>#include <wx/filename.h>#include "../BlockFile.h"#include "../DirManager.h"/// A BlockFile containing nothing but silence.  Saves disk space.class SilentBlockFile : public BlockFile { public:   // Constructor / Destructor   SilentBlockFile(sampleCount sampleLen);   virtual ~SilentBlockFile();   // Reading   /// Read the summary section of the disk file   virtual bool ReadSummary(void *data);   /// Read the data section of the disk file   virtual int ReadData(samplePtr data, sampleFormat format,                        sampleCount start, sampleCount len);   /// Create a new block file identical to this one   virtual BlockFile *Copy(wxFileName newFileName);   /// Write an XML representation of this file   virtual void SaveXML(int depth, wxFFile &xmlFile);   virtual int GetSpaceUsage();   virtual void Recover() { };   static BlockFile *BuildFromXML(DirManager &dm, const wxChar **attrs);};#endif// Indentation settings for Vim and Emacs and unique identifier for Arch, a// version control system. Please do not modify past this point.//// Local Variables:// c-basic-offset: 3// indent-tabs-mode: nil// End://// vim: et sts=3 sw=3// arch-tag: 2d820790-7fce-4a08-80ae-1858f0957c11

⌨️ 快捷键说明

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