add well known controls to list accessible via a MIDI binding map (or OSC?)
[ardour.git] / libs / ardour / export_format_specification.cc
index ea7b4ac4484cb68da127aba866d7a0bc56b43d84..a41c2a085affd5721241b509f3724596c27192f8 100644 (file)
@@ -57,11 +57,11 @@ ExportFormatSpecification::Time::operator= (AnyTime const & other)
        return *this;
 }
 
-framecnt_t
-ExportFormatSpecification::Time::get_frames_at (framepos_t position, framecnt_t target_rate) const
+samplecnt_t
+ExportFormatSpecification::Time::get_samples_at (samplepos_t position, samplecnt_t target_rate) const
 {
-       framecnt_t duration = session.any_duration_to_frames (position, *this);
-       return ((double) target_rate / session.frame_rate()) * duration + 0.5;
+       samplecnt_t duration = session.any_duration_to_samples (position, *this);
+       return ((double) target_rate / session.sample_rate()) * duration + 0.5;
 }
 
 XMLNode &
@@ -84,8 +84,8 @@ ExportFormatSpecification::Time::get_state ()
                node->set_property ("beats", bbt.beats);
                node->set_property ("ticks", bbt.ticks);
                break;
-         case Frames:
-               node->set_property ("frames", frames);
+         case Samples:
+               node->set_property ("samples", samples);
                break;
          case Seconds:
                node->set_property ("seconds", seconds);
@@ -116,8 +116,8 @@ ExportFormatSpecification::Time::set_state (const XMLNode & node)
                node.get_property ("ticks", bbt.ticks);
                break;
 
-       case Frames:
-               node.get_property ("frames", frames);
+       case Samples:
+               node.get_property ("samples", samples);
                break;
 
        case Seconds:
@@ -251,7 +251,6 @@ ExportFormatSpecification::~ExportFormatSpecification ()
 XMLNode &
 ExportFormatSpecification::get_state ()
 {
-       LocaleGuard lg;
        XMLNode * node;
        XMLNode * root = new XMLNode ("ExportFormatSpecification");
 
@@ -321,7 +320,6 @@ ExportFormatSpecification::set_state (const XMLNode & root)
 {
        XMLNode const * child;
        string str;
-       LocaleGuard lg;
 
        root.get_property ("name", _name);