From e6da4c4846cd3097e2393f0e43016b870e7cf592 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sun, 11 Feb 2018 09:39:36 -0600 Subject: SoloSelection: libardour part. --- libs/ardour/region.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libs/ardour/region.cc') diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 37244c0634..fd7a693128 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -216,6 +216,7 @@ Region::register_properties () , _transients (other->_transients) \ , _transient_analysis_start (other->_transient_analysis_start) \ , _transient_analysis_end (other->_transient_analysis_end) \ + , _soloSelected (false) \ , _muted (Properties::muted, other->_muted) \ , _opaque (Properties::opaque, other->_opaque) \ , _locked (Properties::locked, other->_locked) \ @@ -438,6 +439,25 @@ Region::set_name (const std::string& str) return true; } +void +Region::set_selected_for_solo(bool yn) +{ + if ( _soloSelected != yn) { + + boost::shared_ptr pl (playlist()); + if (pl){ + if (yn) { + pl->AddToSoloSelectedList(this); + } else { + pl->RemoveFromSoloSelectedList(this); + } + } + + _soloSelected = yn; + } + +} + void Region::set_length (samplecnt_t len, const int32_t sub_num) { -- cgit v1.2.3