name_changed();
}
+ acq_start_time_ = Glib::DateTime::create_now_local();
+
// Begin the session
sampling_thread_ = std::thread(&Session::sample_thread_proc, this, error_handler);
}
return samplerate;
}
+Glib::DateTime Session::get_acquisition_start_time() const
+{
+ return acq_start_time_;
+}
+
uint32_t Session::get_highest_segment_id() const
{
return highest_segment_id_;
#include <thread>
#include <vector>
+#include <glibmm/datetime.h>
+
#include <QObject>
#include <QSettings>
#include <QString>
void stop_capture();
double get_samplerate() const;
+ Glib::DateTime get_acquisition_start_time() const;
uint32_t get_highest_segment_id() const;
uint64_t get_segment_sample_count(uint32_t segment_id) const;
bool frame_began_;
QElapsedTimer acq_time_;
+ Glib::DateTime acq_start_time_;
MetadataObjManager metadata_obj_manager_;
any_segment->samplerate())}});
output_->receive(meta);
- Glib::DateTime start_time;
- auto header = context->create_header_packet(start_time);
+ auto header = context->create_header_packet(session_.get_acquisition_start_time());
output_->receive(header);
} catch (Error& error) {
error_ = tr("Error while saving: ") + error.what();