summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/region.h
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2016-07-23 02:23:08 +1000
committernick_m <mainsbridge@gmail.com>2016-07-23 02:23:08 +1000
commit299709cbbc26b2c0e0328dce4e12b4d5fdce8b21 (patch)
treed79917eaf7d73c5acdfdfcada8127c52bfce803d /libs/ardour/ardour/region.h
parent6e49ca61a4da8b8755d5cbf765ea06df4bc234a3 (diff)
Make Region's _beat a PBD::Property.
- fixes incorrect beat setting on undo for various region operations.
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r--libs/ardour/ardour/region.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h
index 4c3facf511..e86db04cee 100644
--- a/libs/ardour/ardour/region.h
+++ b/libs/ardour/ardour/region.h
@@ -57,6 +57,7 @@ namespace Properties {
LIBARDOUR_API extern PBD::PropertyDescriptor<framepos_t> start;
LIBARDOUR_API extern PBD::PropertyDescriptor<framecnt_t> length;
LIBARDOUR_API extern PBD::PropertyDescriptor<framepos_t> position;
+ LIBARDOUR_API extern PBD::PropertyDescriptor<double> beat;
LIBARDOUR_API extern PBD::PropertyDescriptor<framecnt_t> sync_position;
LIBARDOUR_API extern PBD::PropertyDescriptor<layer_t> layer;
LIBARDOUR_API extern PBD::PropertyDescriptor<framepos_t> ancestral_start;
@@ -373,6 +374,7 @@ class LIBARDOUR_API Region
PBD::Property<framepos_t> _start;
PBD::Property<framecnt_t> _length;
PBD::Property<framepos_t> _position;
+ PBD::Property<double> _beat;
/** Sync position relative to the start of our file */
PBD::Property<framepos_t> _sync_position;
@@ -431,7 +433,6 @@ class LIBARDOUR_API Region
framecnt_t _last_length;
framepos_t _last_position;
mutable RegionEditState _first_edit;
- double _beat;
layer_t _layer;
void register_properties ();