From 3ae73eb2428f8f5f39cd1d2218b7a4cbefb94a19 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 15 Mar 2022 21:51:55 +0100 Subject: [PATCH] Extend Session::Exported signal Include timespan start position. This will allow to re-import the file at the export-position. --- gtk2_ardour/luasignal_syms.h | 2 +- libs/ardour/ardour/session.h | 2 +- libs/ardour/export_handler.cc | 2 +- libs/ardour/session.cc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/luasignal_syms.h b/gtk2_ardour/luasignal_syms.h index c89de5cd94..0256bcff9b 100644 --- a/gtk2_ardour/luasignal_syms.h +++ b/gtk2_ardour/luasignal_syms.h @@ -37,7 +37,7 @@ STATIC(FeedbackDetected, &ARDOUR::Session::FeedbackDetected, 0) STATIC(SuccessfulGraphSort, &ARDOUR::Session::SuccessfulGraphSort, 0) STATIC(StartTimeChanged, &ARDOUR::Session::StartTimeChanged, 1) STATIC(EndTimeChanged, &ARDOUR::Session::EndTimeChanged, 1) -STATIC(Exported, &ARDOUR::Session::Exported, 3) +STATIC(Exported, &ARDOUR::Session::Exported, 4) // stripable static globals STATIC(Change, &PresentationInfo::Change, 0) diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index e616090f88..9057b1c949 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -862,7 +862,7 @@ public: int start_audio_export (samplepos_t position, bool realtime = false, bool region_export = false); PBD::Signal1 ProcessExport; - static PBD::Signal3 Exported; + static PBD::Signal4 Exported; void add_source (boost::shared_ptr); void remove_source (boost::weak_ptr); diff --git a/libs/ardour/export_handler.cc b/libs/ardour/export_handler.cc index 2a404bb438..d1412e8427 100644 --- a/libs/ardour/export_handler.cc +++ b/libs/ardour/export_handler.cc @@ -376,7 +376,7 @@ ExportHandler::finish_timespan () * take that into account. */ for (auto const& f : graph_builder->exported_files ()) { - Session::Exported (current_timespan->name(), f, config_map.begin()->second.format->reimport()); /* EMIT SIGNAL */ + Session::Exported (current_timespan->name(), f, config_map.begin()->second.format->reimport(), current_timespan->get_start ()); /* EMIT SIGNAL */ } while (config_map.begin() != timespan_bounds.second) { diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 7f84714b9f..ebb3d40f11 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -161,7 +161,7 @@ PBD::Signal3 Session::MissingFile; PBD::Signal1 Session::StartTimeChanged; PBD::Signal1 Session::EndTimeChanged; -PBD::Signal3 Session::Exported; +PBD::Signal4 Session::Exported; PBD::Signal1 > Session::AskAboutPlaylistDeletion; PBD::Signal0 Session::Quit; PBD::Signal0 Session::FeedbackDetected;