source HAS-SOME SegmentDescriptors

This commit is contained in:
Paul Davis 2022-01-13 15:07:21 -07:00
parent 25bd59958c
commit 1994935550
2 changed files with 19 additions and 0 deletions

View File

@ -38,6 +38,7 @@
#include "ardour/ardour.h" #include "ardour/ardour.h"
#include "ardour/session_object.h" #include "ardour/session_object.h"
#include "ardour/data_type.h" #include "ardour/data_type.h"
#include "ardour/segment_descriptor.h"
namespace ARDOUR { namespace ARDOUR {
@ -145,6 +146,9 @@ public:
void set_captured_for (std::string str) { _captured_for = str; } void set_captured_for (std::string str) { _captured_for = str; }
std::string captured_for() const { return _captured_for; } std::string captured_for() const { return _captured_for; }
SegmentDescriptor* get_segment_descriptor (TimelineRange const &);
int set_segment_descriptor (SegmentDescriptor const &);
protected: protected:
DataType _type; DataType _type;
Flag _flags; Flag _flags;
@ -161,6 +165,9 @@ public:
XrunPositions _xruns; XrunPositions _xruns;
CueMarkers _cue_markers; CueMarkers _cue_markers;
typedef std::vector<SegmentDescriptor> SegmentDescriptors;
SegmentDescriptors segment_descriptors;
mutable Glib::Threads::Mutex _lock; mutable Glib::Threads::Mutex _lock;
mutable Glib::Threads::Mutex _analysis_lock; mutable Glib::Threads::Mutex _analysis_lock;

View File

@ -514,3 +514,15 @@ Source::empty () const
{ {
return _length == timecnt_t(); return _length == timecnt_t();
} }
SegmentDescriptor*
Source::get_segment_descriptor (TimelineRange const & range)
{
return 0;
}
int
Source::set_segment_descriptor (SegmentDescriptor const & sr)
{
return 0;
}