summaryrefslogtreecommitdiff
path: root/libs/ardour/export_format_specification.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-14 19:56:26 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-09-14 20:36:03 +1000
commitb66d5e842b954f69c3cdff71c133c78b93b4e698 (patch)
tree2717cf8e4f89323733a9ea89ce543a80351916f3 /libs/ardour/export_format_specification.cc
parent83b48f5cc4b2ffcfdba12b34dd3b6f5ee67c8ca4 (diff)
Add analyse and soundcloud-upload properties of ExportFormatSpecification to xml state
Diffstat (limited to 'libs/ardour/export_format_specification.cc')
-rw-r--r--libs/ardour/export_format_specification.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/ardour/export_format_specification.cc b/libs/ardour/export_format_specification.cc
index 07bd911e98..7ed52a80e8 100644
--- a/libs/ardour/export_format_specification.cc
+++ b/libs/ardour/export_format_specification.cc
@@ -282,6 +282,8 @@ ExportFormatSpecification::get_state ()
root->add_property ("with-toc", _with_toc ? "true" : "false");
root->add_property ("with-mp4chaps", _with_mp4chaps ? "true" : "false");
root->add_property ("command", _command);
+ root->add_property ("analyse", _analyse ? "true" : "false");
+ root->add_property ("soundcloud-upload", _soundcloud_upload ? "true" : "false");
node = root->add_child ("Encoding");
node->add_property ("id", enum_2_string (format_id()));
@@ -375,6 +377,18 @@ ExportFormatSpecification::set_state (const XMLNode & root)
_command = "";
}
+ if ((prop = root.property ("analyse"))) {
+ _analyse = string_is_affirmative (prop->value());
+ } else {
+ _analyse = false;
+ }
+
+ if ((prop = root.property ("soundcloud-upload"))) {
+ _soundcloud_upload = string_is_affirmative (prop->value());
+ } else {
+ _soundcloud_upload = false;
+ }
+
/* Encoding and SRC */
if ((child = root.child ("Encoding"))) {