switch from std::auto_ptr<> (deprecated) to boost::scoped_ptr<>
[ardour.git] / libs / ardour / export_timespan.cc
index 948bf768d52bcdea3a34d75caf4b88db7937da87..a3a7821cbed1f8232d29c57eab375e06e9c0edb5 100644 (file)
 
 #include "ardour/export_timespan.h"
 
-#include "ardour/export_channel_configuration.h"
-#include "ardour/export_filename.h"
-#include "ardour/export_failed.h"
-
 namespace ARDOUR
 {
 
-ExportTimespan::ExportTimespan (ExportStatusPtr status, nframes_t frame_rate) :
-  status (status),
-  start_frame (0),
-  end_frame (0),
-  position (0),
-  frame_rate (frame_rate)
+ExportTimespan::ExportTimespan (ExportStatusPtr status, samplecnt_t sample_rate) :
+       status (status),
+       start_sample (0),
+       end_sample (0),
+       position (0),
+       sample_rate (sample_rate),
+       _realtime (false)
 {
+
 }
 
 ExportTimespan::~ExportTimespan ()
@@ -41,11 +39,11 @@ ExportTimespan::~ExportTimespan ()
 }
 
 void
-ExportTimespan::set_range (nframes_t start, nframes_t end)
+ExportTimespan::set_range (samplepos_t start, samplepos_t end)
 {
-       start_frame = start;
-       position = start_frame;
-       end_frame = end;
+       start_sample = start;
+       position = start_sample;
+       end_sample = end;
 }
 
 } // namespace ARDOUR