diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-21 22:12:06 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-05-21 22:12:06 +0000 |
commit | 48d078b97554dbc0cf8423d42c306f7b1330bff5 (patch) | |
tree | 8bb54c90b9a2adfded36eb78637cac12d33a9fc3 /libs/ardour/ardour/region.h | |
parent | b99c6c6e1d5a2f8f653f64e1ee3788f77a11a120 (diff) |
virtualize audioregion, make crossfade IS-A audioregion
git-svn-id: svn://localhost/ardour2/trunk@1889 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r-- | libs/ardour/ardour/region.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 64d4ee1d83..c3aac3dfa8 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -177,7 +177,9 @@ class Region : public PBD::StatefulDestructible, public boost::enable_shared_fro uint32_t n_channels() const { return _sources.size(); } std::vector<string> master_source_names(); - + + const SourceList& sources() const { return _sources; } + const SourceList& master_sources() const { return _master_sources; } /* serialization */ @@ -191,6 +193,9 @@ class Region : public PBD::StatefulDestructible, public boost::enable_shared_fro uint64_t last_layer_op() const { return _last_layer_op; } void set_last_layer_op (uint64_t when); + virtual bool is_dependent() const { return false; } + virtual bool depends_on (boost::shared_ptr<Region> other) const { return false; } + protected: friend class RegionFactory; @@ -204,6 +209,10 @@ class Region : public PBD::StatefulDestructible, public boost::enable_shared_fro Region (boost::shared_ptr<Source> src, const XMLNode&); Region (SourceList& srcs, const XMLNode&); + /* this one is for derived types of derived types */ + + Region (nframes_t start, nframes_t length, const string& name, DataType, layer_t = 0, Flag flags = DefaultFlags); + protected: XMLNode& get_short_state (); /* used only by Session */ @@ -221,9 +230,7 @@ class Region : public PBD::StatefulDestructible, public boost::enable_shared_fro virtual bool verify_length (nframes_t); virtual void recompute_at_start () = 0; virtual void recompute_at_end () = 0; - - PBD::ID _id; string _name; DataType _type; Flag _flags; |