FP8: use new libardour API
[ardour.git] / libs / surfaces / faderport8 / callbacks.cc
index 28fa9fd95448d8f0e5055569ba88df2e72baf33a..78dc7f7a7870974aeca2e74536ed52cec132e8e3 100644 (file)
@@ -196,23 +196,7 @@ FaderPort8::notify_solo_changed ()
 void
 FaderPort8::notify_mute_changed ()
 {
-       bool muted = false;
-       StripableList all;
-       session->get_stripables (all);
-       for (StripableList::const_iterator i = all.begin(); i != all.end(); ++i) {
-               if ((*i)->is_auditioner() || (*i)->is_monitor()) {
-                       continue;
-               }
-               boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route>(*i);
-               if (r && !r->active()) {
-                       continue;
-               }
-               boost::shared_ptr<MuteControl> mc = (*i)->mute_control();
-               if (mc && mc->muted ()) {
-                       muted = true;
-                       break;
-               }
-       }
+       bool muted = session->muted ();
 #ifdef FP8_MUTESOLO_UNDO
        if (muted) {
                _mute_state.clear ();