Audacity 3.2.0
|
When adding tags, the allocated memory must be preserved until the file is closed. This class handles that, beside the regular file opening and closing. More...
#include <LibsndfileTagger.h>
Public Member Functions | |
LibsndfileTagger (double duration=0., const std::string &filename="") | |
~LibsndfileTagger () | |
operator bool () const | |
void | AddAcidizerTags (const Test::AcidizerTags &acidTags) |
void | AddDistributorInfo (const std::string &distributor) |
SNDFILE & | ReopenInReadMode () |
Private Attributes | |
const std::string | mFilename |
SNDFILE * | mFile |
std::unique_ptr< uint8_t[]> | mAcidData |
std::unique_ptr< uint8_t[]> | mDistributorData |
When adding tags, the allocated memory must be preserved until the file is closed. This class handles that, beside the regular file opening and closing.
Definition at line 59 of file LibsndfileTagger.h.
LibImportExport::Test::LibsndfileTagger::LibsndfileTagger | ( | double | duration = 0. , |
const std::string & | filename = "" |
||
) |
Definition at line 16 of file LibsndfileTagger.cpp.
References mFile, mFilename, and fast_float::round().
LibImportExport::Test::LibsndfileTagger::~LibsndfileTagger | ( | ) |
void LibImportExport::Test::LibsndfileTagger::AddAcidizerTags | ( | const Test::AcidizerTags & | acidTags | ) |
Definition at line 68 of file LibsndfileTagger.cpp.
References LibImportExport::Test::AcidizerTags::beats, LibFileFormats::AcidizerTags::bpm, LibFileFormats::AcidizerTags::isOneShot, mAcidData, and mFile.
Referenced by LibImportExport::TEST_CASE().
void LibImportExport::Test::LibsndfileTagger::AddDistributorInfo | ( | const std::string & | distributor | ) |
Definition at line 147 of file LibsndfileTagger.cpp.
References mDistributorData, and mFile.
Referenced by LibImportExport::TEST_CASE().
LibImportExport::Test::LibsndfileTagger::operator bool | ( | ) | const |
Definition at line 47 of file LibsndfileTagger.cpp.
SNDFILE & LibImportExport::Test::LibsndfileTagger::ReopenInReadMode | ( | ) |
Definition at line 52 of file LibsndfileTagger.cpp.
References mAcidData, mDistributorData, mFile, and mFilename.
Referenced by LibImportExport::TEST_CASE().
|
private |
Definition at line 73 of file LibsndfileTagger.h.
Referenced by AddAcidizerTags(), and ReopenInReadMode().
|
private |
Definition at line 74 of file LibsndfileTagger.h.
Referenced by AddDistributorInfo(), and ReopenInReadMode().
|
private |
Definition at line 72 of file LibsndfileTagger.h.
Referenced by AddAcidizerTags(), AddDistributorInfo(), LibsndfileTagger(), ReopenInReadMode(), and ~LibsndfileTagger().
|
private |
Definition at line 71 of file LibsndfileTagger.h.
Referenced by LibsndfileTagger(), and ReopenInReadMode().