Automation of LV2 plugin properties.
[ardour.git] / libs / ardour / export_status.cc
index c64a03fe23776ce5ecfc10549b26e935ba59de6f..0f7938bb7f2cb3d4a0ab31297cf96e862a882e86 100644 (file)
@@ -18,7 +18,9 @@
 
 */
 
-#include <ardour/export_status.h>
+#include <pbd/stacktrace.h>
+
+#include "ardour/export_status.h"
 
 namespace ARDOUR
 {
@@ -34,18 +36,39 @@ ExportStatus::init ()
        stop = false;
        running = false;
        _aborted = false;
-       
-       stage = export_None;
-       progress = 0.0;
-       
+       _finished = false;
+       _errors = false;
+
+       normalizing = false;
+
        total_timespans = 0;
        timespan = 0;
-       
-       total_channel_configs = 0;
-       channel_config = 0;
-       
-       total_formats = 0;
-       format = 0;
+
+       total_frames = 0;
+       processed_frames = 0;
+
+       total_frames_current_timespan = 0;
+       processed_frames_current_timespan = 0;
+
+       total_normalize_cycles = 0;
+       current_normalize_cycle = 0;
+}
+
+void
+ExportStatus::abort (bool error_occurred)
+{
+       _aborted = true;
+       _finished = true;
+       _errors = _errors || error_occurred;
+       running = false;
+}
+
+void
+ExportStatus::finish ()
+{
+       _finished = true;
+       running = false;
+       Finished(); /* EMIT SIGNAL */
 }
 
 } // namespace ARDOUR