Skip to content

Commit

Permalink
Comment out unused orphan UID search
Browse files Browse the repository at this point in the history
We don't do anything with it. Intention was originally to import the assets in to the session anyway on to empty tracks. Currently out of scope for this PR.
  • Loading branch information
firthm01 committed Jul 26, 2022
1 parent 863bd2c commit 4516de3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reaper-adm-extension/src/reaper_adm/admimporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ void ADMImporter::parse() {
programmes = std::vector<std::shared_ptr<adm::AudioProgramme const>>(admDoc->getElements<adm::AudioProgramme>().begin(), admDoc->getElements<adm::AudioProgramme>().end());
contents = getElementsIfNo<adm::AudioProgramme, adm::AudioContent>(admDoc);
objects = getElementsIfNo<adm::AudioContent, adm::AudioObject>(admDoc);
uids = getElementsIfNo<adm::AudioObject, adm::AudioTrackUid>(admDoc);
// TODO - We don't do anything with this at the moment. Intention was to import in to session anyway but without an AudioObject plugin.
//uids = getElementsIfNo<adm::AudioObject, adm::AudioTrackUid>(admDoc);
auto tracer = adm::detail::GenericRouteTracer<adm::Route, FullDepthViaUIDStrategy>();
sourceCreator = std::make_shared<PCMSourceCreator>(std::make_unique<PCMGroupRegistry>(),
std::make_unique<Bw64PCMReader>(fileName),
Expand All @@ -189,6 +190,7 @@ void ADMImporter::parse() {
applyRoutes(programmes, tracer, *project);
applyRoutes(contents, tracer, *project);
applyRoutes(objects, tracer, *project);
//applyRoutes(uids, tracer, *project);
} catch (std::runtime_error const& e) {
broadcast.error(e);
}
Expand Down

0 comments on commit 4516de3

Please sign in to comment.