#include <sstream>
-#include <ardour/audioengine.h>
-#include <ardour/sndfile_helpers.h>
+#include "ardour/audioengine.h"
+#include "ardour/sndfile_helpers.h"
#include "ardour_ui.h"
#include "export_range_markers_dialog.h"
}
void
-ExportRangeMarkersDialog::export_audio_data ()
+ExportRangeMarkersDialog::export_data ()
{
getSession().locations()->apply(*this, &ExportRangeMarkersDialog::process_range_markers_export);
}
spec.start_frame = currentLocation->start();
spec.end_frame = currentLocation->end();
- getSession().request_locate(spec.start_frame, false);
-
- if (getSession().start_audio_export(spec)){
+ if (getSession().start_export(spec)){
// if export fails
return;
}
}
current_range_marker_index++;
+
+ getSession().stop_export (spec);
}
}
return target_filepath;
}
-
bool
ExportRangeMarkersDialog::is_filepath_valid(string &filepath)
{
if ( (stat (filepath.c_str(), &statbuf) != 0) ||
(!S_ISDIR (statbuf.st_mode)) ) {
- string txt = _("Please select an existing target directory. Files are not allowed!");
- MessageDialog msg (*this, txt, false, MESSAGE_ERROR, BUTTONS_OK, true);
- msg.run();
- return false;
+ string txt = _("Please select an existing target directory. Files are not allowed!");
+ MessageDialog msg (*this, txt, false, MESSAGE_ERROR, BUTTONS_OK, true);
+ msg.run();
+ return false;
}
// directory needs to exist and be writable
return true;
}
-
void
ExportRangeMarkersDialog::init_progress_computing(Locations::LocationList& locations)
{