From 6f91e1e64184f7cf3ae6f24e2136ecbd82318df0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 13 May 2021 13:58:47 -0600 Subject: [PATCH] add CueMarker type Might split this into a separate header if things become more complex than currently imagined --- libs/ardour/ardour/types.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h index 545991bbee..5ca5c13ed0 100644 --- a/libs/ardour/ardour/types.h +++ b/libs/ardour/ardour/types.h @@ -391,6 +391,23 @@ struct MusicRange { } }; +class CueMarker { + public: + CueMarker (std::string& text, samplepos_t position) : _text (text), _position (position) {} + + std::string text() const { return _text; } + void set_text (std::string const & str) { _text = str; } + + samplepos_t position() const { return _position; } + void set_position (samplepos_t pos) { _position = pos; } + + private: + std::string _text; + samplepos_t _position; +}; + +typedef std::vector CueMarkers; + /* Slowest = 6.6dB/sec falloff at update rate of 40ms Slow = 6.8dB/sec falloff at update rate of 40ms