LogoSearch packages:      

Sourcecode: audacity version File versions

SilentBlockFile Class Reference

#include <SilentBlockFile.h>

Inheritance diagram for SilentBlockFile:

BlockFile

List of all members.


Detailed Description

A BlockFile containing nothing but silence. Saves disk space.

Definition at line 21 of file SilentBlockFile.h.


Public Member Functions

virtual BlockFileCopy (wxFileName newFileName)
 Create a new block file identical to this one.
virtual void FillCache ()
virtual wxFileName GetFileName ()
 Gets the filename of the disk file associated with this BlockFile.
virtual sampleCount GetLength ()
virtual void GetMinMax (float *outMin, float *outMax, float *outRMS)
 Gets extreme values for the entire block.
virtual void GetMinMax (sampleCount start, sampleCount len, float *outMin, float *outMax, float *outRMS)
 Gets extreme values for the specified region.
virtual bool GetNeedFillCache ()
virtual bool GetNeedWriteCacheToDisk ()
virtual wxLongLong GetSpaceUsage ()
virtual bool IsAlias ()
 Returns TRUE if this block references another disk file.
virtual bool IsLocked ()
 Returns TRUE if this BlockFile is locked.
virtual void Lock ()
 Locks this BlockFile, to prevent it from being moved.
virtual bool Read256 (float *buffer, sampleCount start, sampleCount len)
 Returns the 256 byte summary data block.
virtual bool Read64K (float *buffer, sampleCount start, sampleCount len)
 Returns the 64K summary data block.
virtual int ReadData (samplePtr data, sampleFormat format, sampleCount start, sampleCount len)
 Read the data section of the disk file.
virtual bool ReadSummary (void *data)
 Read the summary section of the disk file.
virtual void Recover ()
 if the on-disk state disappeared, either recover it (if it was
virtual void SaveXML (XMLWriter &xmlFile)
 Write an XML representation of this file.
void SilenceLog ()
 if we've detected an on-disk problem, the user opted to
 SilentBlockFile (sampleCount sampleLen)
virtual void Unlock ()
 Unlock this BlockFile, allowing it to be moved.
virtual void WriteCacheToDisk ()

Static Public Member Functions

static BlockFileBuildFromXML (DirManager &dm, const wxChar **attrs)
 static

Protected Member Functions

virtual void * CalcSummary (samplePtr buffer, sampleCount len, sampleFormat format)
 Calculate summary data for the given sample data.
virtual void FixSummary (void *data)

Protected Attributes

wxFileName mFileName
sampleCount mLen
float mMax
float mMin
float mRMS
bool mSilentLog
SummaryInfo mSummaryInfo

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.5.1   Back to index