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;
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 != "") {
}
switch (sample_rate()) {
+ case SR_8:
+ components.push_back ("8 kHz");
+ break;
case SR_22_05:
components.push_back ("22,5 kHz");
break;