#include "ardour/audioengine.h"
#include "ardour/butler.h"
#include "ardour/export_failed.h"
-#include "ardour/export_file_io.h"
#include "ardour/export_handler.h"
#include "ardour/export_status.h"
-#include "ardour/export_utilities.h"
#include "ardour/route.h"
#include "ardour/session.h"
_exporting = true;
export_status->running = true;
- scoped_connect (export_status->Aborting, boost::bind (&Session::stop_audio_export, this));
- scoped_connect (export_status->Finished, boost::bind (&Session::finalize_audio_export, this));
+ export_status->Aborting.connect_same_thread (*this, boost::bind (&Session::stop_audio_export, this));
+ export_status->Finished.connect_same_thread (*this, boost::bind (&Session::finalize_audio_export, this));
return 0;
}
last_process_function = process_function;
process_function = &Session::process_export;
} else {
- export_freewheel_connection = _engine.Freewheel.connect (boost::bind (&Session::process_export_fw, this, _1));
+ _engine.Freewheel.connect_same_thread (export_freewheel_connection, boost::bind (&Session::process_export_fw, this, _1));
return _engine.freewheel (true);
}
ProcessExport (nframes);
- } catch (ExportFailed e) {
+ } catch (std::exception & e) {
+ std::cout << e.what() << std::endl;
export_status->abort (true);
}
}