Extend Session::Exported signal

Include timespan start position. This will allow to re-import
the file at the export-position.
This commit is contained in:
Robin Gareus 2022-03-15 21:51:55 +01:00
parent 87354918a1
commit 3ae73eb242
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -862,7 +862,7 @@ public:
int start_audio_export (samplepos_t position, bool realtime = false, bool region_export = false);
PBD::Signal1<int, samplecnt_t> ProcessExport;
static PBD::Signal3<void, std::string, std::string, bool> Exported;
static PBD::Signal4<void, std::string, std::string, bool, samplepos_t> Exported;
void add_source (boost::shared_ptr<Source>);
void remove_source (boost::weak_ptr<Source>);

View File

@ -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) {

View File

@ -161,7 +161,7 @@ PBD::Signal3<int,Session*,std::string,DataType> Session::MissingFile;
PBD::Signal1<void, samplepos_t> Session::StartTimeChanged;
PBD::Signal1<void, samplepos_t> Session::EndTimeChanged;
PBD::Signal3<void, std::string, std::string, bool> Session::Exported;
PBD::Signal4<void, std::string, std::string, bool, samplepos_t> Session::Exported;
PBD::Signal1<int,boost::shared_ptr<Playlist> > Session::AskAboutPlaylistDeletion;
PBD::Signal0<void> Session::Quit;
PBD::Signal0<void> Session::FeedbackDetected;