Audacity
3.0.3
|
An AliasBlockFile that references uncompressed data in an existing file. More...
#include <PCMAliasBlockFile.h>
Public Member Functions | |
PCMAliasBlockFile (wxFileNameWrapper &&baseFileName, wxFileNameWrapper &&aliasedFileName, sampleCount aliasStart, size_t aliasLen, int aliasChannel) | |
Constructs a PCMAliasBlockFile, writing the summary to disk. More... | |
PCMAliasBlockFile (wxFileNameWrapper &&fileName, wxFileNameWrapper &&aliasedFileName, sampleCount aliasStart, size_t aliasLen, int aliasChannel, bool writeSummary) | |
Constructs a PCMAliasBlockFile with the option of not writing to disk. More... | |
PCMAliasBlockFile (wxFileNameWrapper &&existingSummaryFileName, wxFileNameWrapper &&aliasedFileName, sampleCount aliasStart, size_t aliasLen, int aliasChannel, float min, float max, float rms) | |
virtual | ~PCMAliasBlockFile () |
size_t | ReadData (samplePtr data, sampleFormat format, size_t start, size_t len, bool mayThrow) const override |
Reads the specified data from the aliased file using libsndfile. More... | |
void | SaveXML (XMLWriter &xmlFile) override |
BlockFilePtr | Copy (wxFileNameWrapper &&fileName) override |
void | Recover () override |
Static Public Member Functions | |
static BlockFilePtr | BuildFromXML (DirManager &dm, const wxChar **attrs) |
An AliasBlockFile that references uncompressed data in an existing file.
Definition at line 19 of file PCMAliasBlockFile.h.
PCMAliasBlockFile::PCMAliasBlockFile | ( | wxFileNameWrapper && | baseFileName, |
wxFileNameWrapper && | aliasedFileName, | ||
sampleCount | aliasStart, | ||
size_t | aliasLen, | ||
int | aliasChannel | ||
) |
Constructs a PCMAliasBlockFile, writing the summary to disk.
Definition at line 25 of file PCMAliasBlockFile.cpp.
PCMAliasBlockFile::PCMAliasBlockFile | ( | wxFileNameWrapper && | fileName, |
wxFileNameWrapper && | aliasedFileName, | ||
sampleCount | aliasStart, | ||
size_t | aliasLen, | ||
int | aliasChannel, | ||
bool | writeSummary | ||
) |
Constructs a PCMAliasBlockFile with the option of not writing to disk.
Definition at line 36 of file PCMAliasBlockFile.cpp.
PCMAliasBlockFile::PCMAliasBlockFile | ( | wxFileNameWrapper && | existingSummaryFileName, |
wxFileNameWrapper && | aliasedFileName, | ||
sampleCount | aliasStart, | ||
size_t | aliasLen, | ||
int | aliasChannel, | ||
float | min, | ||
float | max, | ||
float | rms | ||
) |
Definition at line 48 of file PCMAliasBlockFile.cpp.
References min().
|
virtual |
Definition at line 60 of file PCMAliasBlockFile.cpp.
|
static |
Definition at line 118 of file PCMAliasBlockFile.cpp.
References Internat::CompatibleToDouble(), XMLValueChecker::IsGoodFileName(), XMLValueChecker::IsGoodFileString(), XMLValueChecker::IsGoodInt(), XMLValueChecker::IsGoodInt64(), XMLValueChecker::IsGoodPathName(), XMLValueChecker::IsGoodPathString(), XMLValueChecker::IsGoodString(), anonymous_namespace{WaveTrack.cpp}::IsValidChannel(), min(), and PLATFORM_MAX_PATH.
|
override |
Construct a NEW PCMAliasBlockFile based on this one, but writing the summary data to a NEW file.
newFileName | The filename to copy the summary data to. |
Definition at line 88 of file PCMAliasBlockFile.cpp.
|
override |
Reads the specified data from the aliased file using libsndfile.
Reads the specified data from the aliased file, using libsndfile, and converts it to the given sample format.
data | The buffer to read the sample data into. |
format | The format to convert the data into |
start | The offset within the block to begin reading |
len | The number of samples to read |
Definition at line 71 of file PCMAliasBlockFile.cpp.
References format, and SAMPLE_SIZE.
|
override |
Definition at line 198 of file PCMAliasBlockFile.cpp.
|
override |
Definition at line 97 of file PCMAliasBlockFile.cpp.
References XMLWriter::EndTag(), XMLWriter::StartTag(), and XMLWriter::WriteAttr().
Referenced by ODPCMAliasBlockFile::SaveXML().