Add test for DSPLoadCalculator to libardour tests
[ardour.git] / libs / ardour / send.cc
index 87aadf4193ce339b8f5749829111b8f29785b59f..2167c4319c4f5ff8209e9d6c40e46ad1d5868b20 100644 (file)
@@ -65,7 +65,7 @@ Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot, bool ignore_b
                return string_compose (_("send %1"), (bitslot = s.next_send_id ()) + 1);
        default:
                fatal << string_compose (_("programming error: send created using role %1"), enum_2_string (r)) << endmsg;
-               /*NOTREACHED*/
+               abort(); /*NOTREACHED*/
                return string();
        }
        
@@ -86,7 +86,6 @@ Send::Send (Session& s, boost::shared_ptr<Pannable> p, boost::shared_ptr<MuteMas
 
        //boost_debug_shared_ptr_mark_interesting (this, "send");
 
-       _amp.reset (new Amp (_session));
        _meter.reset (new PeakMeter (_session, name()));
 
        _delayline.reset (new DelayLine (_session, name()));
@@ -174,7 +173,7 @@ Send::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, pframe
        sendbufs.read_from (bufs, nframes);
        assert(sendbufs.count() == bufs.count());
 
-       /* gain control */
+       /* automatable gain control */
 
        _amp->set_gain_automation_buffer (_session.send_gain_automation_buffer ());
        _amp->setup_gain_automation (start_frame, end_frame, nframes);