expose more info from plugin-strip (for GUI display)
[ardour.git] / libs / ardour / audio_track.cc
index 5e4a3bf236fa4fdbb4c8a0a22c87d75533d69c03..47746ffe312d0a1e018e9a5e46c65899d101a5dd 100644 (file)
@@ -166,7 +166,7 @@ AudioTrack::deprecated_use_diskstream_connections ()
        diskstream->deprecated_io_node = 0;
 
        if ((prop = node.property ("gain")) != 0) {
-               _amp->set_gain (atof (prop->value().c_str()), this);
+               _amp->gain_control()->set_value (atof (prop->value().c_str()), PBD::Controllable::NoGroup);
        }
 
        if ((prop = node.property ("input-connection")) != 0) {
@@ -629,7 +629,7 @@ AudioTrack::freeze_me (InterThreadInfo& itt)
 
        /* reset stuff that has already been accounted for in the freeze process */
 
-       set_gain (GAIN_COEFF_UNITY, this);
+       set_gain (GAIN_COEFF_UNITY, Controllable::NoGroup);
        _amp->gain_control()->set_automation_state (Off);
        /* XXX need to use _main_outs _panner->set_automation_state (Off); */