diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-01 16:52:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-01 16:52:56 +0000 |
commit | 162d672769f648f33e89c6f666cf927b32f5ef3f (patch) | |
tree | 706c84730df55025a8fab78c9ffb0a2c2c0d755e /libs/ardour/port_insert.cc | |
parent | 98f44aa20cef3c59506c2b15af92c6499d8b1c57 (diff) |
Minor tidy-ups to MTDM code; add test.
git-svn-id: svn://localhost/ardour2/branches/3.0@12527 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port_insert.cc')
-rw-r--r-- | libs/ardour/port_insert.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/port_insert.cc b/libs/ardour/port_insert.cc index 46c4d7e9d5..05d0aa3c6f 100644 --- a/libs/ardour/port_insert.cc +++ b/libs/ardour/port_insert.cc @@ -62,10 +62,7 @@ PortInsert::~PortInsert () void PortInsert::start_latency_detection () { - if (_mtdm != 0) { - delete _mtdm; - } - + delete _mtdm; _mtdm = new MTDM; _latency_flush_frames = false; _latency_detect = true; @@ -118,7 +115,7 @@ PortInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame, Sample* out = outbuf.data(); _mtdm->process (nframes, in, out); - + outbuf.set_is_silent (false); } |