Audacity
3.0.3
|
A BlockFile containing nothing but silence. Saves disk space. More...
#include <SilentBlockFile.h>
Public Member Functions | |
SilentBlockFile (size_t sampleLen) | |
virtual | ~SilentBlockFile () |
bool | ReadSummary (ArrayOf< char > &data) override |
Read the summary section of the disk file. More... | |
size_t | ReadData (samplePtr data, sampleFormat format, size_t start, size_t len, bool mayThrow) const override |
Read the data section of the disk file. More... | |
BlockFilePtr | Copy (wxFileNameWrapper &&newFileName) override |
Create a NEW block file identical to this one. More... | |
void | SaveXML (XMLWriter &xmlFile) override |
Write an XML representation of this file. More... | |
DiskByteCount | GetSpaceUsage () const override |
void | Recover () override |
Static Public Member Functions | |
static BlockFilePtr | BuildFromXML (DirManager &dm, const wxChar **attrs) |
static More... | |
A BlockFile containing nothing but silence. Saves disk space.
Definition at line 22 of file SilentBlockFile.h.
SilentBlockFile::SilentBlockFile | ( | size_t | sampleLen | ) |
Definition at line 18 of file SilentBlockFile.cpp.
|
virtual |
Definition at line 26 of file SilentBlockFile.cpp.
|
static |
static
Definition at line 59 of file SilentBlockFile.cpp.
References XMLValueChecker::IsGoodInt().
|
override |
Create a NEW block file identical to this one.
Create a copy of this BlockFile.
Definition at line 83 of file SilentBlockFile.cpp.
|
override |
Definition at line 90 of file SilentBlockFile.cpp.
|
override |
Read the data section of the disk file.
Definition at line 37 of file SilentBlockFile.cpp.
References ClearSamples(), and format.
|
override |
Read the summary section of the disk file.
Definition at line 30 of file SilentBlockFile.cpp.
References ArrayOf< X >::reinit().
|
inlineoverride |
Definition at line 44 of file SilentBlockFile.h.
|
override |
Write an XML representation of this file.
Definition at line 45 of file SilentBlockFile.cpp.
References XMLWriter::EndTag(), XMLWriter::StartTag(), and XMLWriter::WriteAttr().