diff options
Diffstat (limited to 'libs/surfaces/us2400/strip.cc')
-rw-r--r-- | libs/surfaces/us2400/strip.cc | 53 |
1 files changed, 32 insertions, 21 deletions
diff --git a/libs/surfaces/us2400/strip.cc b/libs/surfaces/us2400/strip.cc index bc270df024..8298ff3a93 100644 --- a/libs/surfaces/us2400/strip.cc +++ b/libs/surfaces/us2400/strip.cc @@ -263,14 +263,18 @@ Strip::reset_stripable () void Strip::notify_all() { -// if (!_stripable) { -// zero (); -// return; -// } +#if 0 + if (!_stripable) { + zero (); + return; + } +#endif // The active V-pot control may not be active for this strip // But if we zero it in the controls function it may erase // the one we do want -// _surface->write (_vpot->zero()); +#if 0 + _surface->write (_vpot->zero()); +#endif notify_solo_changed (); notify_mute_changed (); @@ -281,15 +285,19 @@ Strip::notify_all() notify_vpot_change (); notify_panner_width_changed (); notify_record_enable_changed (); -// notify_processor_changed (); +#if 0 + notify_processor_changed (); +#endif } void Strip::notify_solo_changed () { -// if (_stripable && _solo) { -// _surface->write (_solo->set_state (_stripable->solo_control()->soloed() ? on : off)); -// } +#if 0 + if (_stripable && _solo) { + _surface->write (_solo->set_state (_stripable->solo_control()->soloed() ? on : off)); + } +#endif _solo->mark_dirty (); _trickle_counter = 0; @@ -299,14 +307,16 @@ void Strip::notify_mute_changed () { DEBUG_TRACE (DEBUG::US2400, string_compose ("Strip %1 mute changed\n", _index)); -// if (_stripable && _mute) { -// DEBUG_TRACE (DEBUG::US2400, string_compose ("\tstripable muted ? %1\n", _stripable->mute_control()->muted())); -// DEBUG_TRACE (DEBUG::US2400, string_compose ("mute message: %1\n", _mute->set_state (_stripable->mute_control()->muted() ? on : off))); -// -// _surface->write (_mute->set_state (_stripable->mute_control()->muted() ? on : off)); -// } else { -// _surface->write (_mute->zero()); -// } +#if 0 + if (_stripable && _mute) { + DEBUG_TRACE (DEBUG::US2400, string_compose ("\tstripable muted ? %1\n", _stripable->mute_control()->muted())); + DEBUG_TRACE (DEBUG::US2400, string_compose ("mute message: %1\n", _mute->set_state (_stripable->mute_control()->muted() ? on : off))); + + _surface->write (_mute->set_state (_stripable->mute_control()->muted() ? on : off)); + } else { + _surface->write (_mute->zero()); + } +#endif _mute->mark_dirty (); _trickle_counter = 0; @@ -346,10 +356,11 @@ Strip::update_selection_state () { _select->mark_dirty (); _trickle_counter = 0; - -// if(_stripable) { -// _surface->write (_select->set_state (_stripable->is_selected())); -// } +#if 0 + if(_stripable) { + _surface->write (_select->set_state (_stripable->is_selected())); + } +#endif } void |