From 694d91f3954f95c481d303f26b3bb2e8f6a544d6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 3 Jan 2025 01:56:48 +0100 Subject: [PATCH] Use dedicated PT debug flag --- libs/ardour/import_pt.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/ardour/import_pt.cc b/libs/ardour/import_pt.cc index 85053149d1..94b3a39079 100644 --- a/libs/ardour/import_pt.cc +++ b/libs/ardour/import_pt.cc @@ -38,6 +38,7 @@ #include "ardour/midi_track.h" #include "ardour/midi_model.h" #include "ardour/operations.h" +#include "ardour/debug.h" #include "ardour/region_factory.h" #include "ardour/smf_source.h" #include "ardour/source_factory.h" @@ -343,7 +344,7 @@ Session::import_pt_rest (PTFFormat& ptf) nth++; if (!(existing_track = dynamic_pointer_cast (route_by_name (a->name)))) { /* Create missing track */ - DEBUG_TRACE (DEBUG::FileUtils, string_compose ("\tcreate tr(%1) %2\n", nth, a->name.c_str())); + DEBUG_TRACE (DEBUG::PTImport, string_compose ("Create tr(%1) '%2'\n", nth, a->name)); list > at (new_audio_track (1, 2, 0, 1, a->name.c_str(), PresentationInfo::max_order, Normal)); if (at.empty ()) { return; @@ -370,7 +371,7 @@ Session::import_pt_rest (PTFFormat& ptf) /* Matched a ptf active region to an ardour region */ std::shared_ptr r = RegionFactory::region_by_id (p->id); - DEBUG_TRACE (DEBUG::FileUtils, string_compose ("\twav(%1) reg(%2) tr(%3)\n", a->reg.wave.filename.c_str (), a->reg.index, a->index)); + DEBUG_TRACE (DEBUG::PTImport, string_compose ("wav(%1) reg(%2) tr(%3) '%4'\n", a->reg.wave.filename, a->reg.index, a->index, a->name)); /* Use audio track we know exists */ existing_track = dynamic_pointer_cast (route_by_name (a->name));