when copying A3 config files, consider that the user may have /config rather than...
[ardour.git] / libs / ardour / audio_track.cc
index 13d5c43dda312d392e93199defdbd6a6b94f858c..62109e86c7b5e81620487f304689e979916c98e8 100644 (file)
@@ -244,7 +244,7 @@ AudioTrack::set_state_part_two ()
 {
        XMLNode* fnode;
        XMLProperty* prop;
-       LocaleGuard lg (X_("POSIX"));
+       LocaleGuard lg (X_("C"));
 
        /* This is called after all session state has been restored but before
           have been made ports and connections are established.
@@ -350,6 +350,16 @@ AudioTrack::roll (pframes_t nframes, framepos_t start_frame, framepos_t end_fram
                return dret;
        }
 
+       if (_mute_control->list() && _mute_control->automation_playback()) {
+               bool        valid = false;
+               const float mute  = _mute_control->list()->rt_safe_eval(transport_frame, valid);
+               if (mute >= 0.5 && !muted()) {
+                       _mute_control->set_value(1.0);  // mute
+               } else if (mute < 0.5 && muted()) {
+                       _mute_control->set_value(0.0);  // unmute
+               }
+       }
+
        _silent = false;
        _amp->apply_gain_automation(false);