Merge branch 'windows' of git.ardour.org:ardour/ardour into windows
[ardour.git] / libs / ardour / export_format_specification.cc
index c4e61dea39211d7aa5777b9fea5034775e80c8e9..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;
@@ -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;