Audacity 3.2.0
|
Namespaces | |
namespace | Test |
Functions | |
std::optional< LibFileFormats::AcidizerTags > | GetAcidizerTags (SNDFILE &file, const std::vector< std::string > &trustedDistributors) |
Get the Acidizer tags from a file if from a trusted distributor. More... | |
TEST_CASE ("GetAcidizerTags") | |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
std::optional< LibFileFormats::AcidizerTags > IMPORT_EXPORT_API LibImportExport::GetAcidizerTags | ( | SNDFILE & | file, |
const std::vector< std::string > & | trustedDistributors | ||
) |
Get the Acidizer tags from a file if from a trusted distributor.
Acidizer tags are looked for in the header ( https://exiftool.org/TagNames/RIFF.html#Acidizer). Metadata with incorrect BPM values are nevertheless very common, so the function will return non-null only if the distributor is trusted. The distributor is looked for as the "DistributedBy" RIFF info tag (https://exiftool.org/TagNames/RIFF.html#Info).
Definition at line 21 of file GetAcidizerTags.cpp.
References LibFileFormats::AcidizerTags::Loop::bpm, and staffpad::vo::copy().
Referenced by PCMImportFileHandle::Import(), and TEST_CASE().
LibImportExport::TEST_CASE | ( | "GetAcidizerTags" | ) |
Definition at line 27 of file GetAcidizerTagsTests.cpp.
References LibImportExport::Test::LibsndfileTagger::AddAcidizerTags(), LibImportExport::Test::LibsndfileTagger::AddDistributorInfo(), GetAcidizerTags(), and LibImportExport::Test::LibsndfileTagger::ReopenInReadMode().