2 * Copyright (C) 2008-2012 Sakari Bergen <sakari.bergen@beatwaves.net>
3 * Copyright (C) 2008-2017 Paul Davis <paul@linuxaudiosystems.com>
4 * Copyright (C) 2009 David Robillard <d@drobilla.net>
5 * Copyright (C) 2016 Robin Gareus <robin@gareus.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include <pbd/stacktrace.h>
24 #include "ardour/export_status.h"
29 ExportStatus::ExportStatus ()
37 Glib::Threads::Mutex::Lock l (_run_lock);
43 active_job = Exporting;
49 processed_samples = 0;
51 total_samples_current_timespan = 0;
52 processed_samples_current_timespan = 0;
54 total_postprocessing_cycles = 0;
55 current_postprocessing_cycle = 0;
60 ExportStatus::abort (bool error_occurred)
62 Glib::Threads::Mutex::Lock l (_run_lock);
64 _errors = _errors || error_occurred;
69 ExportStatus::finish (TransportRequestSource trs)
71 Glib::Threads::Mutex::Lock l (_run_lock);
73 Finished (trs); /* EMIT SIGNAL */