Save LV2 presets with relative URIs to their own bundle, in the same style as Jalv.
[ardour.git] / libs / ardour / export_format_specification.cc
index 66deabc6235977dfbf67143ab8bfb02c78fc9aa4..b139faeee2997d8401a9e4de77dfe2547254ff74 100644 (file)
@@ -189,13 +189,17 @@ ExportFormatSpecification::ExportFormatSpecification (Session & s, XMLNode const
        set_state (state);
 }
 
-ExportFormatSpecification::ExportFormatSpecification (ExportFormatSpecification const & other)
+ExportFormatSpecification::ExportFormatSpecification (ExportFormatSpecification const & other, bool modify_name)
        : ExportFormatBase(other)
        , session (other.session)
        , _silence_beginning (other.session)
        , _silence_end (other.session)
 {
-       set_name (other.name() + " (copy)");
+       if (modify_name) {
+               set_name (other.name() + " (copy)");
+       } else {
+               set_name (other.name());
+       }
 
        _format_name = other._format_name;
        has_sample_format = other.has_sample_format;
@@ -530,15 +534,15 @@ ExportFormatSpecification::description (bool include_name)
        list<string> components;
 
        if (_normalize) {
-               components.push_back (_("normalize"));
+               components.push_back (_("normalize"));
        }
 
        if (_trim_beginning && _trim_end) {
-               components.push_back ( _("trim"));
+               components.push_back ( _("trim"));
        } else if (_trim_beginning) {
-               components.push_back (_("trim start"));
+               components.push_back (_("trim start"));
        } else if (_trim_end) {
-               components.push_back (_("trim end"));
+               components.push_back (_("trim end"));
        }
 
        if (_format_name != "") {
@@ -550,6 +554,9 @@ ExportFormatSpecification::description (bool include_name)
        }
 
        switch (sample_rate()) {
+       case SR_8:
+               components.push_back ("8 kHz");
+               break;
        case SR_22_05:
                components.push_back ("22,5 kHz");
                break;