summaryrefslogtreecommitdiff
path: root/libs/surfaces/osc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2018-10-17 15:58:08 -0700
committerLen Ovens <len@ovenwerks.net>2018-10-17 15:59:00 -0700
commit5e21b6633d45e49162cef84a64ba759293003a2b (patch)
treebb34df08af9fb6accd1766ecbe8dce855ad03984 /libs/surfaces/osc
parentd2aa57af3b3d188569f5c9f7bea54ba3157a051d (diff)
Option to hide send if aux is hidden
Diffstat (limited to 'libs/surfaces/osc')
-rw-r--r--libs/surfaces/osc/osc.cc4
-rw-r--r--libs/surfaces/osc/osc_cue_observer.cc18
-rw-r--r--libs/surfaces/osc/osc_cue_observer.h1
3 files changed, 0 insertions, 23 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index 24fa6fcdfe..337fefc422 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -6549,10 +6549,6 @@ OSC::cue_new_send (string rt_name, lo_message msg)
boost::shared_ptr<Processor> loc = rt_send->before_processor_for_placement (PreFader);
rt_send->add_aux_send (aux, loc);
boost::shared_ptr<Send> snd = rt_send->internal_send_for (aux);
- if (snd->gain_control() && aux->is_hidden ()) {
- snd->set_display_to_user (false);
- rt_send->processors_changed (RouteProcessorChange ()); /* EMIT SIGNAL */
- }
session->dirty ();
return 0;
} else {
diff --git a/libs/surfaces/osc/osc_cue_observer.cc b/libs/surfaces/osc/osc_cue_observer.cc
index 3a76e6fb71..115fb66024 100644
--- a/libs/surfaces/osc/osc_cue_observer.cc
+++ b/libs/surfaces/osc/osc_cue_observer.cc
@@ -100,7 +100,6 @@ OSCCueObserver::refresh_strip (boost::shared_ptr<ARDOUR::Stripable> new_strip, S
send_gain_message (0, _strip->gain_control(), true);
send_init ();
- hidden_changed ();
tick_enable = true;
tick ();
@@ -205,9 +204,6 @@ OSCCueObserver::send_restart ()
void
OSCCueObserver::name_changed (const PBD::PropertyChange& what_changed, uint32_t id)
{
- if (_hidden != _strip->is_hidden ()) {
- hidden_changed ();
- }
if (!what_changed.contains (ARDOUR::Properties::name)) {
return;
}
@@ -223,20 +219,6 @@ OSCCueObserver::name_changed (const PBD::PropertyChange& what_changed, uint32_t
}
void
-OSCCueObserver::hidden_changed ()
-{
- _hidden = _strip->is_hidden ();
- for (uint32_t i = 0; i < sends.size(); i++) {
- boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route> (sends[i]);
- boost::shared_ptr<Send> send = r->internal_send_for (boost::dynamic_pointer_cast<Route> (_strip));
- if (_hidden == send->display_to_user ()) {
- send->set_display_to_user (!_hidden);
- r->processors_changed (RouteProcessorChange ()); /* EMIT SIGNAL */
- }
- }
-}
-
-void
OSCCueObserver::send_change_message (string path, uint32_t id, boost::shared_ptr<Controllable> controllable)
{
if (id) {
diff --git a/libs/surfaces/osc/osc_cue_observer.h b/libs/surfaces/osc/osc_cue_observer.h
index f85eb1e3d9..0863032732 100644
--- a/libs/surfaces/osc/osc_cue_observer.h
+++ b/libs/surfaces/osc/osc_cue_observer.h
@@ -63,7 +63,6 @@ class OSCCueObserver
std::vector<float> _last_gain;
void name_changed (const PBD::PropertyChange& what_changed, uint32_t id);
- void hidden_changed (void);
void send_change_message (std::string path, uint32_t id, boost::shared_ptr<PBD::Controllable> controllable);
void send_gain_message (uint32_t id, boost::shared_ptr<PBD::Controllable> controllable, bool force);
void send_enabled_message (std::string path, uint32_t id, boost::shared_ptr<ARDOUR::Processor> proc);