From d55d3a7360beb854f55eb358be52df00fc9a0ed0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 15 May 2022 02:18:31 +0200 Subject: [PATCH] Save/load export timespan realtime setting --- libs/ardour/export_profile_manager.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc index 4e93841895..44155a7aa8 100644 --- a/libs/ardour/export_profile_manager.cc +++ b/libs/ardour/export_profile_manager.cc @@ -4,7 +4,7 @@ * Copyright (C) 2009-2011 David Robillard * Copyright (C) 2009-2012 Carl Hetherington * Copyright (C) 2012-2016 Tim Mayberry - * Copyright (C) 2013-2019 Robin Gareus + * Copyright (C) 2013-2022 Robin Gareus * Copyright (C) 2014 Nick Mainsbridge * * This program is free software; you can redistribute it and/or modify @@ -452,10 +452,14 @@ ExportProfileManager::deserialize_timespan (XMLNode& root) continue; } + bool rt = false; + (*node_it)->get_property ("realtime", rt); + ExportTimespanPtr timespan = handler->add_timespan (); timespan->set_name (location->name ()); timespan->set_range_id (location->id ().to_s ()); timespan->set_range (location->start_sample (), location->end_sample ()); + timespan->set_realtime (rt); state->timespans->push_back (timespan); } @@ -478,6 +482,7 @@ ExportProfileManager::serialize_timespan (TimespanStatePtr state) for (TimespanList::iterator it = state->timespans->begin (); it != state->timespans->end (); ++it) { if ((span = root.add_child ("Range"))) { span->set_property ("id", (*it)->range_id ()); + span->set_property ("realtime", (*it)->realtime ()); } }