ardour
export_status.cc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 Paul Davis
3  Author: Sakari Bergen
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 
19 */
20 
21 #include <pbd/stacktrace.h>
22 
23 #include "ardour/export_status.h"
24 
25 namespace ARDOUR
26 {
27 
29 {
30  init();
31 }
32 
33 void
35 {
36  stop = false;
37  running = false;
38  _aborted = false;
39  _finished = false;
40  _errors = false;
41 
42  normalizing = false;
43 
44  total_timespans = 0;
45  timespan = 0;
46 
47  total_frames = 0;
48  processed_frames = 0;
49 
52 
55 }
56 
57 void
58 ExportStatus::abort (bool error_occurred)
59 {
60  _aborted = true;
61  _finished = true;
62  _errors = _errors || error_occurred;
63  running = false;
64 }
65 
66 void
68 {
69  _finished = true;
70  running = false;
71  Finished(); /* EMIT SIGNAL */
72 }
73 
74 } // namespace ARDOUR
void abort(bool error_occurred=false)
volatile uint32_t timespan
Definition: export_status.h:59
volatile bool _finished
Definition: export_status.h:74
volatile bool stop
Definition: export_status.h:41
volatile framecnt_t processed_frames_current_timespan
Definition: export_status.h:66
volatile framecnt_t total_frames_current_timespan
Definition: export_status.h:65
volatile bool _errors
Definition: export_status.h:73
volatile framecnt_t processed_frames
Definition: export_status.h:63
volatile bool running
Definition: export_status.h:42
Definition: amp.h:29
volatile uint32_t total_normalize_cycles
Definition: export_status.h:68
volatile bool _aborted
Definition: export_status.h:72
volatile framecnt_t total_frames
Definition: export_status.h:62
volatile uint32_t total_timespans
Definition: export_status.h:58
PBD::Signal0< void > Finished
Definition: export_status.h:48
volatile uint32_t current_normalize_cycle
Definition: export_status.h:69
volatile bool normalizing
Definition: export_status.h:56