#include "ardour/export_status.h"
#include "ardour/session.h"
#include "ardour/track.h"
+#include "ardour/process_thread.h"
#include "i18n.h"
}
int
-Session::start_audio_export (nframes_t position, bool /* realtime */)
+Session::start_audio_export (framepos_t position, bool /* realtime */)
{
if (!_exporting) {
pre_export ();
}
void
-Session::process_export (nframes_t nframes)
+Session::process_export (pframes_t nframes)
{
if (_export_rolling && export_status->stop) {
stop_audio_export ();
process_without_events (nframes);
}
-
+
try {
/* handle export - XXX what about error handling? */
}
int
-Session::process_export_fw (nframes_t nframes)
+Session::process_export_fw (pframes_t nframes)
{
+ _engine.main_thread()->get_buffers ();
process_export (nframes);
+ _engine.main_thread()->drop_buffers ();
return 0;
}
if (post_export_sync) {
config.set_external_sync (true);
} else {
- locate (post_export_position, false, false, false);
+ locate (post_export_position, false, false, false, false, false);
}
}