Fix stub LV2 persist implementation.
[ardour.git] / libs / ardour / mute_master.cc
index 9a95e70a115ee83cd082126940ca79dab1d5839f..5a261fb44fabd20543f6fd3ebb736fc8ad8c3a49 100644 (file)
 using namespace ARDOUR;
 using namespace std;
 
-const MuteMaster::MutePoint MuteMaster::AllPoints = MutePoint (MuteMaster::PreFader|
-                                                              MuteMaster::PostFader|
-                                                              MuteMaster::Listen|
-                                                              MuteMaster::Main);
-
 MuteMaster::MuteMaster (Session& s, const std::string&)
-       : SessionHandleRef (s) 
-        , _mute_point (AllPoints)
+       : SessionHandleRef (s)
+       , _mute_point (MutePoint (0))
         , _muted_by_self (false)
         , _soloed (false)
         , _solo_ignore (false)
 {
+       
+       if (Config->get_mute_affects_pre_fader ()) {
+               _mute_point = MutePoint (_mute_point | PreFader);
+       }
+
+       if (Config->get_mute_affects_post_fader ()) {
+               _mute_point = MutePoint (_mute_point | PostFader);
+       }
+
+       if (Config->get_mute_affects_control_outs ()) {
+               _mute_point = MutePoint (_mute_point | Listen);
+       }
+
+       if (Config->get_mute_affects_main_outs ()) {
+               _mute_point = MutePoint (_mute_point | Main);
+       }
 }
 
 void